fix: 调整流量显示为强制不换行

This commit is contained in:
Montia37
2025-08-15 23:42:12 +08:00
parent 910f74b96d
commit c21942f739
3 changed files with 9 additions and 8 deletions

View File

@@ -145,9 +145,9 @@ export const NodeCard = ({ node }: NodeCardProps) => {
</div>
</div>
<div className="flex items-center justify-between text-xs">
<span className="text-secondary-foreground w-1/4"></span>
<div className="flex items-center justify-between w-3/4">
<div className="flex items-center justify-center w-1/3">
<span className="text-secondary-foreground w-1/5"></span>
<div className="flex items-center justify-between w-4/5">
<div className="flex items-center w-1/4">
{node.traffic_limit !== 0 && isOnline && stats && (
<CircleProgress
value={trafficPercentage}
@@ -158,7 +158,7 @@ export const NodeCard = ({ node }: NodeCardProps) => {
/>
)}
</div>
<div className="w-2/3 text-right">
<div className="w-3/4 text-right text-nowrap">
<div>
<span>
{stats ? formatBytes(stats.network.totalUp) : "N/A"}