Compare commits

..

1 Commits

Author SHA1 Message Date
newbie fb88fd2d3e fix(sidebar): constrain the root height so the bottom dock stays fixed 2026-11-12 20:53:37 +08:00
3 changed files with 5 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -107,7 +107,7 @@
and scrolls, so no row is ever cut in half (a halved row reads as an overlap)
and nothing from the tree is painted underneath the dock. */
.wgDock {
flex:0 0 auto;
flex:0 1 auto;
min-width:0;
/* A plain pixel floor (bucket row + workspace row + padding). A content-based
floor would outweigh max-height, letting the dock grow to the whole session

View File

@ -58,6 +58,9 @@ const block = (selector) => {
const start = match.index + match[0].length - match[1].length
return css.slice(start, css.indexOf('}', start))
}
assert.match(block('.wgRoot'), /height:100%/, 'the root consumes the sidebar slot height')
assert.match(block('.wgRoot'), /max-height:100%/, 'the root cannot grow past its slot')
assert.match(block('.wgRoot'), /overflow:hidden/, 'the root clips instead of scrolling the whole sidebar')
assert.match(block('.wgDock'), /border-top:1px solid/, 'the dock draws the divider against the tree')
assert.match(block('.wgDock'), /max-height:min\(62vh,560px\)/, 'the dock is capped so the tree always keeps room')
assert.match(block('.wgDock'), /overflow:hidden/, 'the dock clips its own overflow instead of painting over the tree')