Repository navigation
fix(gui): let the Combos page scroll past suggested combos - #9105
Conversation
|
✅ Deterministic PR hygiene checks passed. |
✅ READY
Review readiness checklist
✅ 4/4 boxes ticked. UI screenshot waived by a maintainer comment. Hygiene✅ Deterministic PR hygiene checks passed. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Maintainer integration into
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Summary
Closes #9101. On Models -> Combos, when the "Suggested combos" box is shown, the combo workspace below it cannot be scrolled into view: its lower fields and the Save / Remove bar stay off-screen and nothing moves on wheel or trackpad.
The suggestions render inside
.combos-workspace-shell-body, above.combos-workspace-root. The grid keeps the body's full height (height/min-height: 100%), so it ends below the viewport by the height of the suggestions, and the body clipped it withoverflow: hidden. The rule meant to shrink the grid,.rb-suggest + .combos-workspace-root, never matches, because #8914 wraps the suggestions infieldset.rb-suggest-policy. Matching it would not be enough either: with "Show all" open the suggestions are taller than the body, and a shrinkable grid collapses to zero height.The shell body now scrolls vertically (
overflow-y: auto,overflow-xstays hidden), and the grid inside it keeps its full height (flex: 0 0 auto). Scrolling first moves the suggestions out of the way, then the grid fills the visible area with its own rail and detail scrolling as before. The dead sibling rule is removed. Without suggestions the body has nothing to scroll, so the layout is unchanged.Verification
gui/tests/combos-workspace-scroll.test.ts(source-level, same style asviewport-scroll-caps.test.ts): fails ondev(2 fail) and passes with the fix.cd gui && bun test --isolate tests && bun run lint && bun run build: 4831 pass, 0 fail; oxlint 0 warnings, 0 errors; build succeeded.ocx startwith three OpenAI-compatible test providers sharing model names (so suggestions appear), headless Chromium, 40 wheel steps over the workspace, then comparing the grid's bottom edge with the viewport:scrollHeight == clientHeight, document not scrollable, same as before.bun run test(root suite) was not run. The change is one GUI stylesheet plus a GUI test; the root suite does not load GUI CSS. The GUI checks above are the onesgui/AGENTS.mdasks for before a PR.4dac387(dev merges): since0e04e16, where the checks above ran, the merges add onlydevlog/files (docs(devlog): proxy upstream catch-up roadmap #9106) and two root test files (test: stabilize Link preflight and standalone stop checks #9064), nothing undergui/; the diff againstdevis unchanged (the same two files).bun test --isolate tests/combos-workspace-scroll.test.tson4dac387: 2 pass, 0 fail.Screenshots (Firefox, 1280x800, scrolled to the bottom):
Checklist
Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
Required local validation passed; commands, results, and any full-suite exception are documented.
I pushed my PR to a recent dev commit (at most 10 behind; a maintainer may still ask for the exact tip before merge).
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.
Summary by CodeRabbit