From d289a9101c2e4f9c5c343a2d5f7bcb5574ccd1ab Mon Sep 17 00:00:00 2001 From: Gmer4Lfe Date: Tue, 25 Aug 2026 17:01:52 -0400 Subject: [PATCH] Monitor: cap the System card's Varaverk block so the host figures set the card's height, not the sum of both --- Plugin/unraid/css/varaverk.css | 23 +++++++++++++++++++++++ Plugin/unraid/pages/monitor.php | 3 ++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/Plugin/unraid/css/varaverk.css b/Plugin/unraid/css/varaverk.css index 7c6863e..63d8cf9 100644 --- a/Plugin/unraid/css/varaverk.css +++ b/Plugin/unraid/css/varaverk.css @@ -235,6 +235,29 @@ body.vv-fullscreen #displaybox { padding-left: 1rem !important; padding-top: .5r /* Hide scrollbars on any nested scrollable div inside monitor cards */ #vv-monitor .vv-card div::-webkit-scrollbar { display: none; } +/* System card: the Varaverk half is bounded, the host half is not. + This card is the one with no

, so the header/body split that gives every other card a + fixed part and a scrolling part had to be made inside its body. The cut is after Version: + hostname, clock, model, array state, uptime, load and version are what the card is for and + are left to size themselves, and only the block below them is capped. + + A plain max-height, not flex:1 on the capped half. Under flex the strip is sized by what the + block above leaves over, and on a 1080p row (177px against a ~190px host half) that remainder + is negative: the strip collapses to nothing and the Varaverk figures vanish with no scrollbar + to say so. A fixed cap cannot do that — the block is 64px wherever it lands, and where the card + is shorter than the two halves together the body's own scroll (inherited above) reaches the rest. + + 64px is the label and about three rows of the Varaverk grid, so Cache, Data and Jobs read + without scrolling. It also holds the card to ~254px, which is what stops it dragging its row + down below eight columns, where rows are sized to content (see vv_mon_rung_overflows). */ +#vv-system-body .vv-sys-scroll { + max-height: 64px; + overflow-y: auto; + -ms-overflow-style: none; + scrollbar-width: none; +} +#vv-system-body .vv-sys-scroll::-webkit-scrollbar { display: none; } + /* Dynamic row heights capped per screen tier — rows size to content, never exceed the cap. minmax(0, Xpx): track is content-driven but capped; align-items:stretch makes all cards in a row fill the track, so short cards (Pools, Watchdog) match tall ones (Array). diff --git a/Plugin/unraid/pages/monitor.php b/Plugin/unraid/pages/monitor.php index 8d58733..56eea57 100644 --- a/Plugin/unraid/pages/monitor.php +++ b/Plugin/unraid/pages/monitor.php @@ -1079,9 +1079,10 @@ function vvPollMonitor(live) { Running ${_runningCtrs} ctr${_runningCtrs !== 1 ? 's' : ''}${_runningVMs > 0 ? ` · ${_runningVMs} VM` : ''} Version ${ver} + -
+
Varaverk
Cache ${_cacheStr}