From 03082cdb74c1f2a75d91c984ca20b4622d3d00f2 Mon Sep 17 00:00:00 2001 From: Unsloth Date: Tue, 28 Jul 2026 23:23:03 -0700 Subject: [PATCH] Studio: keep per-GPU memory figures on narrow screens The one-row device layout hid used, free and total below 1024px, so tablets and small laptops were left with only the utilization percentage. Those widths now stack the row instead of dropping the figures, and the bar goes full width under them. --- .../features/settings/tabs/resources-tab.tsx | 35 ++++++++++++------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/studio/frontend/src/features/settings/tabs/resources-tab.tsx b/studio/frontend/src/features/settings/tabs/resources-tab.tsx index 298d159cf9..776e643163 100644 --- a/studio/frontend/src/features/settings/tabs/resources-tab.tsx +++ b/studio/frontend/src/features/settings/tabs/resources-tab.tsx @@ -124,7 +124,9 @@ function MetricTile({ {percentKnown ? formatPercent(safePercent) : "--"} @@ -327,7 +329,9 @@ export function ResourcesTab() { const hasGpu = (displayedGpu?.available ?? false) && metrics.devices.length > 0; const backendLabel = ( - displayedGpu?.backend ?? systemInfo.device_backend ?? "cpu" + displayedGpu?.backend ?? + systemInfo.device_backend ?? + "cpu" ).toUpperCase(); const modelsFolderPath = hfCache ? hfCache.cacheHome @@ -487,7 +491,7 @@ export function ResourcesTab() { // as a page-wide rule, so the bar is sized to the row instead.
@@ -501,8 +505,10 @@ export function ResourcesTab() { })}, ${backendLabel}`}
-
-
+ {/* Narrow screens stack instead of hiding: the used, free and + total figures stay reachable on tablets and small laptops. */} +
+
{t("settings.resources.gpu.used", { value: usedText })} @@ -513,14 +519,17 @@ export function ResourcesTab() { {t("settings.resources.gpu.total", { value: totalText })}
- -
- {percentText} {t("settings.resources.gpu.vramUtilization")} +
+ +
+ {percentText}{" "} + {t("settings.resources.gpu.vramUtilization")} +