mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-19 20:49:33 +01:00
fix: keep the host readings' labels under header density, hide ringless ones at Compact tiny (release review)
#689's density steps hide every `.header-system-stats .stat-label` once the toolbar is narrowed, and #692's readings (GPU, VRAM, GPU MHz, CPU MHz) have nothing else naming them: at tight, dense and tiny the header showed "40%" beside CPU's "12%", "3.2G" beside MEM's "7.9G", and two bare "1800 MHz" / "4200 MHz" with no way to tell the GPU clock from the CPU one. At Compact + tiny, where values are hidden too, the two clocks (no ring) were left as 0-px items that still took an 8 px flex gap each. Neither PR shows it alone. - The four host items carry `stat-item--host`, excluded from the density label hide, so they keep their labels at every step. - `stat-item--ringless` (static on the two clocks, toggled by `_updateHostSensors` on VRAM while its total, and so its ring, is unknown) is hidden at Compact + tiny instead of staying an empty item. Tests: the browser test drives every density in all three styles against the real markup and styles.css (it fails on the previous files), and the unit test pins the VRAM ringless toggle. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
e739b2e9d4
commit
fb83a5c8df
7 files changed
+97
-8
No files matched your search
@@ -178,7 +178,7 @@
|
||||
</div>
|
||||
<span class="stat-value" id="statMem">--</span>
|
||||
</div>
|
||||
<div class="stat-item" id="statGpuItem" hidden>
|
||||
<div class="stat-item stat-item--host" id="statGpuItem" hidden>
|
||||
<span class="stat-ring" id="statGpuRing" aria-hidden="true"></span>
|
||||
<span class="stat-label">GPU</span>
|
||||
<div class="stat-bar">
|
||||
@@ -186,7 +186,7 @@
|
||||
</div>
|
||||
<span class="stat-value" id="statGpu">--%</span>
|
||||
</div>
|
||||
<div class="stat-item" id="statVramItem" hidden>
|
||||
<div class="stat-item stat-item--host" id="statVramItem" hidden>
|
||||
<span class="stat-ring" id="statVramRing" aria-hidden="true"></span>
|
||||
<span class="stat-label">VRAM</span>
|
||||
<div class="stat-bar">
|
||||
@@ -194,11 +194,11 @@
|
||||
</div>
|
||||
<span class="stat-value" id="statVram">--%</span>
|
||||
</div>
|
||||
<div class="stat-item" id="statGpuMhzItem" hidden>
|
||||
<div class="stat-item stat-item--host stat-item--ringless" id="statGpuMhzItem" hidden>
|
||||
<span class="stat-label">GPU</span>
|
||||
<span class="stat-value" id="statGpuMhz">-- MHz</span>
|
||||
</div>
|
||||
<div class="stat-item" id="statCpuMhzItem" hidden>
|
||||
<div class="stat-item stat-item--host stat-item--ringless" id="statCpuMhzItem" hidden>
|
||||
<span class="stat-label">CPU</span>
|
||||
<span class="stat-value" id="statCpuMhz">-- MHz</span>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user