mirror of
https://github.com/fankes/komari-theme-purcarte.git
synced 2025-10-19 03:49:22 +08:00
fix: 调整流量显示为强制不换行
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
"name": "Komari Theme PurCart",
|
"name": "Komari Theme PurCart",
|
||||||
"short": "PurCarte",
|
"short": "PurCarte",
|
||||||
"description": "A frosted glass theme for Komari",
|
"description": "A frosted glass theme for Komari",
|
||||||
"version": "1.0.3",
|
"version": "1.0.4",
|
||||||
"author": "Montia & Gemini",
|
"author": "Montia & Gemini",
|
||||||
"url": "https://github.com/Montia37/Komari-theme-purcarte",
|
"url": "https://github.com/Montia37/Komari-theme-purcarte",
|
||||||
"preview": "preview.png",
|
"preview": "preview.png",
|
||||||
|
@@ -145,9 +145,9 @@ export const NodeCard = ({ node }: NodeCardProps) => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center justify-between text-xs">
|
<div className="flex items-center justify-between text-xs">
|
||||||
<span className="text-secondary-foreground w-1/4">流量</span>
|
<span className="text-secondary-foreground w-1/5">流量</span>
|
||||||
<div className="flex items-center justify-between w-3/4">
|
<div className="flex items-center justify-between w-4/5">
|
||||||
<div className="flex items-center justify-center w-1/3">
|
<div className="flex items-center w-1/4">
|
||||||
{node.traffic_limit !== 0 && isOnline && stats && (
|
{node.traffic_limit !== 0 && isOnline && stats && (
|
||||||
<CircleProgress
|
<CircleProgress
|
||||||
value={trafficPercentage}
|
value={trafficPercentage}
|
||||||
@@ -158,7 +158,7 @@ export const NodeCard = ({ node }: NodeCardProps) => {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="w-2/3 text-right">
|
<div className="w-3/4 text-right text-nowrap">
|
||||||
<div>
|
<div>
|
||||||
<span>
|
<span>
|
||||||
↑ {stats ? formatBytes(stats.network.totalUp) : "N/A"}
|
↑ {stats ? formatBytes(stats.network.totalUp) : "N/A"}
|
||||||
|
@@ -93,9 +93,9 @@ export const NodeListItem = ({ node }: NodeListItemProps) => {
|
|||||||
<div>↓ {stats ? formatBytes(stats.network.down, true) : "N/A"}</div>
|
<div>↓ {stats ? formatBytes(stats.network.down, true) : "N/A"}</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="col-span-2">
|
<div className="col-span-2">
|
||||||
<div className="flex items-center justify-around">
|
<div className="flex items-center justify-around text-nowrap">
|
||||||
{node.traffic_limit !== 0 && isOnline && stats && (
|
{node.traffic_limit !== 0 && isOnline && stats && (
|
||||||
<div className="flex items-center">
|
<div className="flex items-center justify-center w-1/4">
|
||||||
<CircleProgress
|
<CircleProgress
|
||||||
value={trafficPercentage}
|
value={trafficPercentage}
|
||||||
maxValue={100}
|
maxValue={100}
|
||||||
@@ -105,7 +105,8 @@ export const NodeListItem = ({ node }: NodeListItemProps) => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className={node.traffic_limit !== 0 ? "w-2/3" : "w-full"}>
|
<div
|
||||||
|
className={node.traffic_limit !== 0 ? "w-3/4 text-left" : "w-full"}>
|
||||||
<div>
|
<div>
|
||||||
<span>
|
<span>
|
||||||
↑ {stats ? formatBytes(stats.network.totalUp) : "N/A"}
|
↑ {stats ? formatBytes(stats.network.totalUp) : "N/A"}
|
||||||
|
Reference in New Issue
Block a user