fix(overview): bandwidth display

This commit is contained in:
hamster1963 2024-12-27 16:41:15 +08:00
parent 39c1eca1b0
commit a07a70e965
3 changed files with 5 additions and 5 deletions

View File

@ -140,7 +140,7 @@ export default function ServerOverviewClient() {
</div> </div>
{data?.result ? ( {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"> <p className="text-[12px] text-blue-800 dark:text-blue-400 text-nowrap font-medium">
{formatBytes(data?.total_out_bandwidth)} {formatBytes(data?.total_out_bandwidth)}
</p> </p>
@ -148,7 +148,7 @@ export default function ServerOverviewClient() {
{formatBytes(data?.total_in_bandwidth)} {formatBytes(data?.total_in_bandwidth)}
</p> </p>
</section> </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"> <p className="text-[11px] flex items-center text-nowrap font-semibold">
<ArrowUpCircleIcon className="size-3 mr-0.5 sm:mb-[1px]" /> <ArrowUpCircleIcon className="size-3 mr-0.5 sm:mb-[1px]" />
{formatBytes(data?.total_out_speed)}/s {formatBytes(data?.total_out_speed)}/s

BIN
bun.lockb

Binary file not shown.

View File

@ -44,7 +44,7 @@
"lucide-react": "^0.454.0", "lucide-react": "^0.454.0",
"luxon": "^3.5.0", "luxon": "^3.5.0",
"maxmind": "^4.3.23", "maxmind": "^4.3.23",
"next": "^15.1.2", "next": "^15.1.3",
"next-auth": "^5.0.0-beta.25", "next-auth": "^5.0.0-beta.25",
"next-intl": "^3.26.3", "next-intl": "^3.26.3",
"next-runtime-env": "^3.2.2", "next-runtime-env": "^3.2.2",
@ -63,12 +63,12 @@
}, },
"devDependencies": { "devDependencies": {
"@biomejs/biome": "1.9.4", "@biomejs/biome": "1.9.4",
"@next/bundle-analyzer": "^15.1.2", "@next/bundle-analyzer": "^15.1.3",
"@tailwindcss/postcss": "^4.0.0-beta.8", "@tailwindcss/postcss": "^4.0.0-beta.8",
"@types/node": "^22.10.2", "@types/node": "^22.10.2",
"@types/react": "^19.0.2", "@types/react": "^19.0.2",
"@types/react-dom": "^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-turbo": "^2.3.3",
"eslint-plugin-unused-imports": "^4.1.4", "eslint-plugin-unused-imports": "^4.1.4",
"postcss": "^8.4.49", "postcss": "^8.4.49",