attempt to fix layout shift on resource widgets

pull/100/head
Ben Phelps 2 years ago
parent 31ccb9c933
commit fb9e03b31d

@ -39,7 +39,7 @@ export default function Disk({ options }) {
return (
<div className="flex-none flex flex-row items-center justify-center group">
<FiHardDrive className="text-theme-800 dark:text-theme-200 w-5 h-5" />
<div className="flex flex-col ml-3 text-left ">
<div className="flex flex-col ml-3 text-left min-w-[80px]">
<span className="text-theme-800 dark:text-theme-200 text-xs group-hover:hidden">
{t("common.bytes", { value: data.drive.freeGb * 1024 * 1024 * 1024 })} {t("resources.free")}
</span>

@ -39,7 +39,7 @@ export default function Memory() {
return (
<div className="flex-none flex flex-row items-center justify-center group">
<FaMemory className="text-theme-800 dark:text-theme-200 w-5 h-5" />
<div className="flex flex-col ml-3 text-left">
<div className="flex flex-col ml-3 text-left min-w-[80px]">
<span className="text-theme-800 dark:text-theme-200 text-xs group-hover:hidden">
{t("common.bytes", { value: data.memory.freeMemMb * 1024 * 1024 })} {t("resources.free")}
</span>

Loading…
Cancel
Save