From 51cd629b9c02258eecffce2dd7a41f7a12363dfb Mon Sep 17 00:00:00 2001 From: Menghuan1918 Date: Wed, 25 Nov 2026 01:38:54 +0800 Subject: [PATCH] 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"`. --- src/client/clues/windows/pack.module.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/client/clues/windows/pack.module.css b/src/client/clues/windows/pack.module.css index efe38520..543a03ae 100644 --- a/src/client/clues/windows/pack.module.css +++ b/src/client/clues/windows/pack.module.css @@ -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;