diff --git a/komari-theme.json b/komari-theme.json index d1ba943..3fdbffa 100644 --- a/komari-theme.json +++ b/komari-theme.json @@ -2,7 +2,7 @@ "name": "Komari Theme PurCart", "short": "PurCarte", "description": "A frosted glass theme for Komari", - "version": "1.0.3", + "version": "1.0.4", "author": "Montia & Gemini", "url": "https://github.com/Montia37/Komari-theme-purcarte", "preview": "preview.png", diff --git a/src/components/sections/NodeCard.tsx b/src/components/sections/NodeCard.tsx index 11851d4..5a67248 100644 --- a/src/components/sections/NodeCard.tsx +++ b/src/components/sections/NodeCard.tsx @@ -145,9 +145,9 @@ export const NodeCard = ({ node }: NodeCardProps) => {
- 流量 -
-
+ 流量 +
+
{node.traffic_limit !== 0 && isOnline && stats && ( { /> )}
-
+
↑ {stats ? formatBytes(stats.network.totalUp) : "N/A"} diff --git a/src/components/sections/NodeListItem.tsx b/src/components/sections/NodeListItem.tsx index dacdf11..d1865e3 100644 --- a/src/components/sections/NodeListItem.tsx +++ b/src/components/sections/NodeListItem.tsx @@ -93,9 +93,9 @@ export const NodeListItem = ({ node }: NodeListItemProps) => {
↓ {stats ? formatBytes(stats.network.down, true) : "N/A"}
-
+
{node.traffic_limit !== 0 && isOnline && stats && ( -
+
{ />
)} -
+
↑ {stats ? formatBytes(stats.network.totalUp) : "N/A"}