Archived
dashboard: the .hold mobile scroll override was dead code -- specificity fix
Judge slice 31 FAILed a91bf44 and the operator's thumb confirmed it: the
request table still locks under a phone drag. The media-query override
listed bare .hold, but the base '.hold { overscroll-behavior:contain }' is
defined LATER in this file -- equal specificity, later rule wins the
cascade, so the override matched and lost. The .pbody half won (its base
rule is earlier), which is why the page scrolled some of the way but the
request block did not.
Fixed by specificity, not by moving the block: '.body .hold' outranks the
base '.hold' regardless of order, and the media query stays co-located
with the other breakpoint rules per this file's convention. The graph
modal (.ginfo .pbody) deliberately stays contained: it is an overlay the
user scrolls on purpose, and chaining out of it into the page behind is
the wrong feel.
Authored at: Memoria Qwen 3.8 Flash-Next 125B MoE (level not visible) via Open WebUI
This commit is contained in:
1 parent
57184a0724
commit
8cfcd3c6e5
1 file changed
+6
-2
@@ -570,8 +570,12 @@ h1 { margin:0; font-size:13.5px; font-weight:600; letter-spacing:-.005em; }
|
||||
* over the request table does not move the page behind it) traps the drag here: you
|
||||
* scroll the card, it bottoms out, and the page will not follow, so you reach for the
|
||||
* margins where no scroller lives to get the page moving again. On narrow screens let
|
||||
* the scroll chain to the document; the desktop containment stays. */
|
||||
.body .panel > .pbody, .hold { overscroll-behavior:auto; }
|
||||
* the scroll chain to the document; the desktop containment stays.
|
||||
* .body .hold, not .hold: the base .hold rule is defined LATER in this file, so a bare
|
||||
* .hold override here would match and still LOSE the cascade (equal specificity, later
|
||||
* wins) -- judge slice 31 caught exactly that dead-code trap, and the operator's thumb
|
||||
* confirmed it on the request table. .body .hold wins on specificity regardless of order. */
|
||||
.body .panel > .pbody, .body .hold { overscroll-behavior:auto; }
|
||||
}
|
||||
|
||||
/* the request table */
|
||||
|
||||
Reference in new issue
Block a user