diff --git a/webview/hugo/static/workstation-probe/css/panel.css b/webview/hugo/static/workstation-probe/css/panel.css index f481d9c..84bd7ae 100644 --- a/webview/hugo/static/workstation-probe/css/panel.css +++ b/webview/hugo/static/workstation-probe/css/panel.css @@ -579,12 +579,17 @@ } .workstation-probe-sub-row-bar { - position: relative; height: 10px; display: flex; align-items: center; } +.workstation-probe-sub-row-bar-track { + position: relative; + width: 100%; + height: 10px; +} + .workstation-probe-sub-row-bar-used { position: absolute; top: 0; diff --git a/webview/hugo/static/workstation-probe/js/render.js b/webview/hugo/static/workstation-probe/js/render.js index b29285f..566ddf9 100644 --- a/webview/hugo/static/workstation-probe/js/render.js +++ b/webview/hugo/static/workstation-probe/js/render.js @@ -509,9 +509,6 @@ function renderGpuCell(dev) { const powerDetail = dev.power_limit_watts > 0 ? `${power} / ${dev.power_limit_watts.toFixed(0)} W` : power; - const tempPct = typeof dev.temperature_c === 'number' && dev.temperature_c > 0 - ? clamp(dev.temperature_c, 0, 100) - : 0; const error = dev.error ? `
${escapeHtml(dev.error)}
` : ''; @@ -524,7 +521,6 @@ function renderGpuCell(dev) { ${name}
- GPU${gpuUtil} TEMP${temp.text}
@@ -533,7 +529,6 @@ function renderGpuCell(dev) { ${renderGpuMeter('GPU', gpuUtil, gpuPct, gpuStatusColor(gpuStatus(gpuPct)))} ${renderGpuMeter('VRAM', memPair.usedText, memPct, memPressureColor(memPct), memPair.subText)} ${renderGpuMeter('PWR', powerDetail, powerPct, powerPct > 0 ? memPressureColor(powerPct) : 'var(--wsp-fg-faint)', dev.power_limit_watts > 0 ? `${powerPct.toFixed(0)}%` : 'no cap')} - ${renderGpuMeter('TEMP', temp.text, tempPct, temp.color)} `; @@ -655,8 +650,10 @@ function renderStorageRows(container, disks) { ${escapeHtml(alias)} ${escapeHtml(path)}
-
-
+
+
+
+
${escapeHtml(sizeText)} diff --git a/webview/hugo/test/expected/basic/workstation-probe/css/panel.css b/webview/hugo/test/expected/basic/workstation-probe/css/panel.css index f481d9c..84bd7ae 100644 --- a/webview/hugo/test/expected/basic/workstation-probe/css/panel.css +++ b/webview/hugo/test/expected/basic/workstation-probe/css/panel.css @@ -579,12 +579,17 @@ } .workstation-probe-sub-row-bar { - position: relative; height: 10px; display: flex; align-items: center; } +.workstation-probe-sub-row-bar-track { + position: relative; + width: 100%; + height: 10px; +} + .workstation-probe-sub-row-bar-used { position: absolute; top: 0; diff --git a/webview/hugo/test/expected/basic/workstation-probe/js/render.js b/webview/hugo/test/expected/basic/workstation-probe/js/render.js index b29285f..566ddf9 100644 --- a/webview/hugo/test/expected/basic/workstation-probe/js/render.js +++ b/webview/hugo/test/expected/basic/workstation-probe/js/render.js @@ -509,9 +509,6 @@ function renderGpuCell(dev) { const powerDetail = dev.power_limit_watts > 0 ? `${power} / ${dev.power_limit_watts.toFixed(0)} W` : power; - const tempPct = typeof dev.temperature_c === 'number' && dev.temperature_c > 0 - ? clamp(dev.temperature_c, 0, 100) - : 0; const error = dev.error ? `
${escapeHtml(dev.error)}
` : ''; @@ -524,7 +521,6 @@ function renderGpuCell(dev) { ${name}
- GPU${gpuUtil} TEMP${temp.text}
@@ -533,7 +529,6 @@ function renderGpuCell(dev) { ${renderGpuMeter('GPU', gpuUtil, gpuPct, gpuStatusColor(gpuStatus(gpuPct)))} ${renderGpuMeter('VRAM', memPair.usedText, memPct, memPressureColor(memPct), memPair.subText)} ${renderGpuMeter('PWR', powerDetail, powerPct, powerPct > 0 ? memPressureColor(powerPct) : 'var(--wsp-fg-faint)', dev.power_limit_watts > 0 ? `${powerPct.toFixed(0)}%` : 'no cap')} - ${renderGpuMeter('TEMP', temp.text, tempPct, temp.color)} `; @@ -655,8 +650,10 @@ function renderStorageRows(container, disks) { ${escapeHtml(alias)} ${escapeHtml(path)}
-
-
+
+
+
+
${escapeHtml(sizeText)}