mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
fix(overview): bandwidth display
This commit is contained in:
parent
39c1eca1b0
commit
a07a70e965
@ -140,7 +140,7 @@ export default function ServerOverviewClient() {
|
||||
</div>
|
||||
{data?.result ? (
|
||||
<>
|
||||
<section className="flex flex-col sm:flex-row items-start pr-0 gap-1">
|
||||
<section className="flex flex-row flex-wrap items-start pr-0 gap-1">
|
||||
<p className="text-[12px] text-blue-800 dark:text-blue-400 text-nowrap font-medium">
|
||||
↑{formatBytes(data?.total_out_bandwidth)}
|
||||
</p>
|
||||
@ -148,7 +148,7 @@ export default function ServerOverviewClient() {
|
||||
↓{formatBytes(data?.total_in_bandwidth)}
|
||||
</p>
|
||||
</section>
|
||||
<section className="flex flex-col sm:flex-row -mr-1 sm:items-center items-start gap-1">
|
||||
<section className="flex flex-row flex-wrap -mr-1 sm:items-center items-start gap-1">
|
||||
<p className="text-[11px] flex items-center text-nowrap font-semibold">
|
||||
<ArrowUpCircleIcon className="size-3 mr-0.5 sm:mb-[1px]" />
|
||||
{formatBytes(data?.total_out_speed)}/s
|
||||
|
@ -44,7 +44,7 @@
|
||||
"lucide-react": "^0.454.0",
|
||||
"luxon": "^3.5.0",
|
||||
"maxmind": "^4.3.23",
|
||||
"next": "^15.1.2",
|
||||
"next": "^15.1.3",
|
||||
"next-auth": "^5.0.0-beta.25",
|
||||
"next-intl": "^3.26.3",
|
||||
"next-runtime-env": "^3.2.2",
|
||||
@ -63,12 +63,12 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "1.9.4",
|
||||
"@next/bundle-analyzer": "^15.1.2",
|
||||
"@next/bundle-analyzer": "^15.1.3",
|
||||
"@tailwindcss/postcss": "^4.0.0-beta.8",
|
||||
"@types/node": "^22.10.2",
|
||||
"@types/react": "^19.0.2",
|
||||
"@types/react-dom": "^19.0.2",
|
||||
"eslint-config-next": "^15.1.2",
|
||||
"eslint-config-next": "^15.1.3",
|
||||
"eslint-plugin-turbo": "^2.3.3",
|
||||
"eslint-plugin-unused-imports": "^4.1.4",
|
||||
"postcss": "^8.4.49",
|
||||
|
Loading…
Reference in New Issue
Block a user