|
|
|
@ -29,12 +29,12 @@ export default function Disk({ options, expanded }) {
|
|
|
|
|
<FiHardDrive className="text-theme-800 dark:text-theme-200 w-5 h-5" />
|
|
|
|
|
<div className="flex flex-col ml-3 text-left min-w-[85px]">
|
|
|
|
|
<span className="text-theme-800 dark:text-theme-200 text-xs flex flex-row justify-between">
|
|
|
|
|
<div className="pl-0.5">-</div>
|
|
|
|
|
<div className="pl-0.5 pr-1">-</div>
|
|
|
|
|
<div className="pr-1">{t("resources.free")}</div>
|
|
|
|
|
</span>
|
|
|
|
|
{expanded && (
|
|
|
|
|
<span className="text-theme-800 dark:text-theme-200 text-xs flex flex-row justify-between">
|
|
|
|
|
<div className="pl-0.5">-</div>
|
|
|
|
|
<div className="pl-0.5 pr-1">-</div>
|
|
|
|
|
<div className="pr-1">{t("resources.total")}</div>
|
|
|
|
|
</span>
|
|
|
|
|
)}
|
|
|
|
@ -51,12 +51,12 @@ export default function Disk({ options, expanded }) {
|
|
|
|
|
<FiHardDrive className="text-theme-800 dark:text-theme-200 w-5 h-5" />
|
|
|
|
|
<div className="flex flex-col ml-3 text-left min-w-[85px]">
|
|
|
|
|
<span className="text-theme-800 dark:text-theme-200 text-xs flex flex-row justify-between">
|
|
|
|
|
<div className="pl-0.5">{t("common.bytes", { value: data.drive.freeGb * 1024 * 1024 * 1024 })}</div>
|
|
|
|
|
<div className="pl-0.5 pr-1">{t("common.bytes", { value: data.drive.freeGb * 1024 * 1024 * 1024 })}</div>
|
|
|
|
|
<div className="pr-1">{t("resources.free")}</div>
|
|
|
|
|
</span>
|
|
|
|
|
{expanded && (
|
|
|
|
|
<span className="text-theme-800 dark:text-theme-200 text-xs flex flex-row justify-between">
|
|
|
|
|
<div className="pl-0.5">{t("common.bytes", { value: data.drive.totalGb * 1024 * 1024 * 1024 })}</div>
|
|
|
|
|
<div className="pl-0.5 pr-1">{t("common.bytes", { value: data.drive.totalGb * 1024 * 1024 * 1024 })}</div>
|
|
|
|
|
<div className="pr-1">{t("resources.total")}</div>
|
|
|
|
|
</span>
|
|
|
|
|
)}
|
|
|
|
|