Skip to content

Fix: process sidebar fits the viewport as a flex column (#77) - #83

Merged
DavidVFitzGerald merged 4 commits into
mainfrom
fix/77-sidebar-overflow
Nov 15, 2026
Merged

DavidVFitzGerald merged 4 commits into
mainfrom
fix/77-sidebar-overflow

Conversation

@DavidVFitzGerald

Copy link
Copy Markdown
Owner

Refs #77

Behavior

  • Root cause: .process-tree { height: calc(100dvh - 480px) } (from ec1e1bc, [Task] F3: manage individual selection order and a virtualized selected-process list #18) assumed the pre-[Task] F4 — Assemble the Flows comparison with exact missingness and cell warnings #24 growing page. After dd85fa1 ([Task] F4 — Assemble the Flows comparison with exact missingness and cell warnings #24) made the page viewport-tall and gave .sidebar overflow-y: auto, the fixed offset overflowed the process sidebar by 30 px at 1280 × 720 with an empty selection (scrollHeight 635 > clientHeight 605). Firefox then correctly made the scroll container a tab stop, which broke the F2 gate's Shift+Tab order.
  • Fix (structural): .sidebar is now a flex column, and #process-sidebar is a flex column that grows into the sidebar. The tree uses flex: 1 0 12rem; min-height: 12rem, so it fills the remaining height down to its existing minimum, whatever the chrome or font metrics. The fixed offset is gone.
  • Scrolling still works: when the content exceeds the height (a short viewport or a large selection), the sidebar still scrolls and stays focusable. scroll-padding-block: 1.25rem, matching the sidebar's padding, makes Firefox fully reveal a focused control. Without it, Firefox left Selected processes (0) partly clipped at 1280 × 560 (it does not scroll a partly visible focused element).
  • There is no tabindex, overflow: hidden/clip, control shrinking or F2 gate change. The F2 gate's existing assertions are untouched; the diff only appends a new describe.

Regression tests (e2e/f2-gate.spec.ts, "process sidebar height (#77)")

  • At 1280 × 720 with an empty selection: sidebar scrollHeight ≤ clientHeight, tree height ≥ 12rem, and the page does not scroll. This fails at 0a8bc4b in both browsers (635 > 605).
  • At 1280 × 560: the sidebar overflows, and the tree height is ≥ 12rem. After Tab from the tree, Selected processes (0) has visible focus and lies inside the sidebar's scrollport, the sidebar has scrolled, and the page has not (scrollY 0, document ≤ viewport). Before the fix this failed in Firefox (the button bottom at 595.7 was beyond the scrollport bottom at 559.9).

Checks (container, project lca-diff-bug77)

See the #77 handoff for the full list. In short: the F2 gate passes in both projects, Firefox --repeat-each=5 passes 30/30, the targeted specs pass, and format, lint, typecheck and build pass.

Limitations

🤖 Generated with Claude Code

DavidVFitzGerald and others added 2 commits November 15, 2026 17:57
…0 (Refs #77)

Fails at 0a8bc4b: the sidebar overflows by 30 px (635 > 605) in both
browsers, and in Firefox the focused Selected processes toggle stays
partly clipped at 1280×560.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tree offset (Refs #77)

The tree height calc(100dvh - 480px) from ec1e1bc (#18) assumed the
growing page; after dd85fa1 (#24) made the page viewport-tall with
overflow-y: auto sidebars, it overflowed the sidebar by 30 px at
1280×720, making it a Firefox tab stop. The tree now fills the rest of
the sidebar's flex column down to its 12rem minimum, and scroll padding
lets Firefox reveal a focused control fully when the sidebar scrolls.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@DavidVFitzGerald
DavidVFitzGerald merged commit cc67a45 into main Nov 15, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant