Docs: the row-height cap is conditional now, and the board's narrow-screen behaviour was nowhere in the page help
This commit is contained in:
@@ -80,9 +80,13 @@ const VV_MON_PAD = 20; // horizontal padding the Unraid page wrapper takes off
|
||||
// The column ladder, widest first.
|
||||
const VV_MON_RUNGS = [8, 4, 2, 1];
|
||||
|
||||
// Cap on how many rows may share one screen height. The row-height cap divides the viewport by
|
||||
// this, so a card can never grow past a quarter of the screen and push the rest off it. Rungs
|
||||
// with fewer rows than this divide by their own row count instead and fill the screen.
|
||||
// Cap on how many rows may share one screen height — and the line between two behaviours, not one
|
||||
// rule. A rung with no more rows than this fits a screen: the row-height cap divides the viewport
|
||||
// by the rung's own row count, or by this when the rung has more, so the board fills the screen
|
||||
// and no card grows past its share. A rung with MORE rows than this cannot fit however its rows
|
||||
// are sized, so the cap is dropped there and rows size to content instead — see
|
||||
// vv_mon_rung_overflows(). Capping a board that scrolls regardless buys nothing and clips every
|
||||
// card to pay for it. This board is 4 rows at eight columns and 8 at four, so both cases are live.
|
||||
const VV_MON_ROWS_PER_SCREEN = 4;
|
||||
|
||||
// ── The board ─────────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user