Skip to content

Commit

Permalink
fix(overview): bandwidth display
Browse files Browse the repository at this point in the history
  • Loading branch information
hamster1963 committed Dec 27, 2024
1 parent 39c1eca commit a07a70e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/(main)/ClientComponents/main/ServerOverviewClient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,15 @@ 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>
<p className="text-[12px] text-purple-800 dark:text-purple-400 text-nowrap font-medium">
{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
Expand Down
Binary file modified bun.lockb
Binary file not shown.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit a07a70e

Please sign in to comment.