style: network text

This commit is contained in:
hamster1963 2024-12-04 09:01:36 +08:00
parent 2fc15d0732
commit 535e9f6db1

View File

@ -99,24 +99,26 @@ export default function ServerOverview({
{t("serverOverview.network")} {t("serverOverview.network")}
</p> </p>
<section className="flex flex-row z-[999] sm:items-center items-start pr-2 sm:pr-0 gap-1 ml-auto"> <section className="flex flex-row z-[999] sm:items-center items-start pr-2 sm:pr-0 gap-1 ml-auto">
<p className="sm:text-[12px] text-[10px] text-nowrap font-semibold"> <p className="sm:text-[12px] text-[10px] text-blue-800 text-nowrap font-medium">
{formatBytes(up)} {formatBytes(up)}
</p> </p>
<p className="sm:text-[12px] text-[10px] text-nowrap font-semibold"> <p className="sm:text-[12px] text-[10px] text-purple-800 text-nowrap font-medium">
{formatBytes(down)} {formatBytes(down)}
</p> </p>
</section> </section>
</div> </div>
<section className="flex flex-row mt-1.5 -mr-1 sm:items-center items-start gap-1"> <section className="flex flex-row mt-1.5 -mr-1 sm:items-center items-start gap-1">
<p className="sm:text-[12px] flex items-center text-[10px] text-nowrap font-bold"> <p className="sm:text-[12px] flex items-center text-[10px] text-nowrap font-semibold">
<ArrowUpCircleIcon className="size-3 mr-0.5 sm:mb-[1.1px]" /> <ArrowUpCircleIcon className="size-3 mr-0.5 sm:mb-[1px]" />
{formatBytes( {formatBytes(
upSpeed, upSpeed,
)}/s )}/s
</p> </p>
<p className="sm:text-[12px] flex items-center text-[10px] text-nowrap font-bold"> <p className="sm:text-[12px] flex items-center text-[10px] text-nowrap font-semibold">
<ArrowDownCircleIcon className="size-3 mr-0.5" /> <ArrowDownCircleIcon className="size-3 mr-0.5" />
{formatBytes(downSpeed)}/s {formatBytes(
downSpeed,
)}/s
</p> </p>
</section> </section>
</section> </section>