Add English translations and size refactor
This commit is contained in:
1 parent
7fcac0638a
commit
af4fbff5c1
1 file changed
+13
-9
@@ -272,21 +272,25 @@ export default function DockerWidget({ options, width, isEditMode }: WidgetCompo
|
|||||||
}}
|
}}
|
||||||
p={4}
|
p={4}
|
||||||
>
|
>
|
||||||
<Group gap={4}>
|
<Group gap={4} wrap="nowrap">
|
||||||
<IconBrandDocker size={20} />
|
<IconBrandDocker size={20} style={{ flexShrink: 0 }} />
|
||||||
<Text size="sm">{t("table.footer", { count: totalContainers.toString() })}</Text>
|
<Text size="sm" truncate="end">
|
||||||
|
{t("table.footer", { count: totalContainers.toString() })}
|
||||||
|
</Text>
|
||||||
</Group>
|
</Group>
|
||||||
|
|
||||||
<Group gap="xl">
|
<Group gap="sm" wrap="wrap" justify="flex-end" style={{ flex: 1, minWidth: 0 }}>
|
||||||
<Text size="sm" c={cpuUsageColor(totals.cpu, "running")}>
|
<Text size="sm" c={cpuUsageColor(totals.cpu, "running")} style={{ whiteSpace: "nowrap" }}>
|
||||||
Total CPU: {totals.cpu.toFixed(2)}%
|
{t("table.totalCpu", { cpu: totals.cpu.toFixed(2) })}
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
<Text size="sm" c={memoryUsageColor(totals.memory, "running")}>
|
<Text size="sm" c={memoryUsageColor(totals.memory, "running")} style={{ whiteSpace: "nowrap" }}>
|
||||||
Total Mem: {humanFileSize(totals.memory)}
|
{t("table.totalMemory", { memory: humanFileSize(totals.memory) })}
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
<Text size="sm">{t("table.updated", { when: relativeTime })}</Text>
|
<Text size="sm" style={{ whiteSpace: "nowrap" }}>
|
||||||
|
{t("table.updated", { when: relativeTime })}
|
||||||
|
</Text>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in new issue
Block a user