From cf9a9a3682b5ffc982d2850b28d10634407f16cd Mon Sep 17 00:00:00 2001 From: Unsloth Date: Wed, 29 Jul 2026 02:35:30 -0700 Subject: [PATCH] Studio: let the GPU readings truncate instead of overflowing The three figures carry truncate but sit in a flex row, where the default min-width:auto stops an item shrinking below its text. The longest locales would push past the block rather than ellipsize. --- .../src/features/settings/tabs/resources-tab.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/studio/frontend/src/features/settings/tabs/resources-tab.tsx b/studio/frontend/src/features/settings/tabs/resources-tab.tsx index e5ed0e0fc5..1a6eb5abbb 100644 --- a/studio/frontend/src/features/settings/tabs/resources-tab.tsx +++ b/studio/frontend/src/features/settings/tabs/resources-tab.tsx @@ -525,16 +525,19 @@ export function ResourcesTab() {
{/* Ruled between the three readings: run together they are easy to misread as one number. */} + {/* min-w-0 on each reading, or truncate cannot fire: a flex + item defaults to min-width:auto and the longest locales + would push past the block instead of ellipsizing. */}
- + {t("settings.resources.gpu.used", { value: usedText })} - + {t("settings.resources.gpu.free", { value: freeText })} - + {t("settings.resources.gpu.total", { value: totalText, })}