style: better inline card

This commit is contained in:
hamster1963 2024-12-01 19:09:13 +08:00
parent 88b264be69
commit 188de26f95

View File

@ -84,7 +84,7 @@ export default function ServerCardInline({
</div> </div>
</div> </div>
</div> </div>
<div className={"flex w-14 flex-col"}> <div className={"flex w-20 flex-col"}>
<p className="text-xs text-muted-foreground"> <p className="text-xs text-muted-foreground">
{t("serverCard.uptime")} {t("serverCard.uptime")}
</p> </p>
@ -117,7 +117,7 @@ export default function ServerCardInline({
</div> </div>
<ServerUsageBar value={stg} /> <ServerUsageBar value={stg} />
</div> </div>
<div className={"flex w-14 flex-col"}> <div className={"flex w-16 flex-col"}>
<p className="text-xs text-muted-foreground"> <p className="text-xs text-muted-foreground">
{t("serverCard.upload")} {t("serverCard.upload")}
</p> </p>
@ -127,7 +127,7 @@ export default function ServerCardInline({
: `${up.toFixed(2)}M/s`} : `${up.toFixed(2)}M/s`}
</div> </div>
</div> </div>
<div className={"flex w-14 flex-col"}> <div className={"flex w-16 flex-col"}>
<p className="text-xs text-muted-foreground"> <p className="text-xs text-muted-foreground">
{t("serverCard.download")} {t("serverCard.download")}
</p> </p>
@ -137,7 +137,7 @@ export default function ServerCardInline({
: `${down.toFixed(2)}M/s`} : `${down.toFixed(2)}M/s`}
</div> </div>
</div> </div>
<div className={"flex flex-col"}> <div className={"flex w-20 flex-col"}>
<p className="text-xs text-muted-foreground"> <p className="text-xs text-muted-foreground">
{t("serverCard.totalUpload")} {t("serverCard.totalUpload")}
</p> </p>
@ -145,7 +145,7 @@ export default function ServerCardInline({
{formatBytes(serverInfo.state.net_out_transfer)} {formatBytes(serverInfo.state.net_out_transfer)}
</div> </div>
</div> </div>
<div className={"flex flex-col"}> <div className={"flex w-20 flex-col"}>
<p className="text-xs text-muted-foreground"> <p className="text-xs text-muted-foreground">
{t("serverCard.totalDownload")} {t("serverCard.totalDownload")}
</p> </p>