fix(clues): keep the pack footer on the window's bottom edge

The bleed footer's negative bottom margin cannot pull it past the content box
once the flexing `.content` consumes every pixel, so the pack window measured
26px from its 2px floating edge to the footer's button instead of the intended
14px (12px gutter + 2px edge). Cancelling the root's bottom inset whenever a
bleed footer owns the edge makes the geometry independent of free space; the
mount lane's `clues-uiux` assertion is 14 again.

Gates: typecheck, lint, test (366 files / 4615 passed), build, consumer-types,
plus `bash scripts/e2e-mount.sh --grep "clues workbench stays usable"`.
This commit is contained in:
Menghuan1918 committed 2026-11-25 01:38:54 +08:00
1 parent f9cf2e0b66
commit 51cd629b9c
1 file changed
+10
+10
View File
@@ -14,6 +14,16 @@
font: var(--dsw-font-xxs-12);
color: var(--dsw-alias-label-primary);
}
/* A bleed footer owns the window's bottom edge. The root's own bottom inset
would otherwise sit above the footer's 12px padding, leaving 26px inside the
2px floating edge instead of the intended 14px: the negative bottom margin of
`.actionFooterBleed` cannot pull the footer past the content box once the
flexing `.content` consumes every pixel, so the inset is cancelled here. */
.root:has(> [data-clue-pack-footer]),
.root:has(> [data-clue-pack-add-footer]) {
padding-bottom: 0;
}
.content {
display: flex;
flex: 1;