Repository navigation
fix(settings): stop shortcut filter rail overlapping the list below xl - #9252
Merged
Merged
Conversation
Below the xl breakpoint the shortcuts grid collapses to one column, and with only implicit auto rows the fixed-height container splits into two equal rows. The Status filter rail needs more than its half, and since the rail is overflow-visible its content (the Conflicts filter) spills down over the shortcut list — the overlap users hit on scaled/narrow displays. Pin the rail row to its content height (auto) and give the list row the rest (minmax(0,1fr)) below xl via max-xl, so the rail can't spill and the list still owns the scroll. The xl two-column layout is unchanged. Co-authored-by: Orca <[email protected]>
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughUpdated the shortcuts pane grid container to stack the filter rail above the shortcut list below the 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On the Settings → Shortcuts page, the Status filter rail (All / Modified / Unassigned / Conflicts) overlaps the shortcut list (group headers and command rows render on top of the filters). Reported from a Windows laptop — display scaling puts the CSS viewport just under the
xl(1280px) breakpoint, which is what triggers it.Root cause
The rail + list are a two-column grid that only defines its columns at
xl:Below
xlthe grid collapses to a single column with only implicit auto rows. Inside the focused pane's fixed-height,overflow-hiddencontainer, those two auto rows split the height into two equal tracks (measured:grid-template-rows: 195px 195px). The rail needs ~250px but its track is clamped to 195px, and because the rail isoverflow: visible, its lower content (the Conflicts filter) spills down into the list's track → the overlap.Fix
One line — below
xl, pin the rail row to its content height and give the list row the remainder, so nothing spills and the list keeps its own scroll:max-xl:andxl:are mutually exclusive media queries, sodisplaystaysgridthroughout and there's no precedence conflict. Thexltwo-column layout is unchanged.Before / After (viewport 1200px, below
xl)xl(1600px) layout preserved — two columns, list scrolls independently:Testing
xl): rail overlapped the list; measuredgrid-template-rows: 195px 195px.grid-template-rows: 225px auto-rest, rail bottom (558px) sits above list top (582px), 0px overlap.xl(1600px) still renders the two-column layout (grid-template-columns: 256px …, rail left / list right).oxlintclean; existing shortcut unit tests pass (23/23).Note: the screenshots live on the
nwparker/shortcut-display-bug-assetsbranch and can be deleted after merge.Made with Orca 🐋