Skip to content

fix(settings): stop shortcut filter rail overlapping the list below xl - #9252

Merged
nwparker merged 1 commit into
mainfrom
nwparker/shortcut-display-bug
Jul 18, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/shortcut-display-bug

Conversation

@nwparker

@nwparker nwparker commented Jul 18, 2026 •

Copy link
Copy Markdown
Contributor

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:

grid ... xl:grid-cols-[16rem_minmax(0,1fr)]

Below xl the grid collapses to a single column with only implicit auto rows. Inside the focused pane's fixed-height, overflow-hidden container, 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 is overflow: 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:

-<div className="grid min-h-0 flex-1 gap-6 xl:grid-cols-[16rem_minmax(0,1fr)]">
+<div className="grid min-h-0 flex-1 gap-6 max-xl:grid-rows-[auto_minmax(0,1fr)] xl:grid-cols-[16rem_minmax(0,1fr)]">

max-xl: and xl: are mutually exclusive media queries, so display stays grid throughout and there's no precedence conflict. The xl two-column layout is unchanged.

Before / After (viewport 1200px, below xl)

Before (overlap) After (fixed)
before after

xl (1600px) layout preserved — two columns, list scrolls independently:

xl

Testing

  • Reproduced live in the Electron dev build at 1200px (below xl): rail overlapped the list; measured grid-template-rows: 195px 195px.
  • After the fix at 1200px: grid-template-rows: 225px auto-rest, rail bottom (558px) sits above list top (582px), 0px overlap.
  • Verified xl (1600px) still renders the two-column layout (grid-template-columns: 256px …, rail left / list right).
  • oxlint clean; existing shortcut unit tests pass (23/23).

Note: the screenshots live on the nwparker/shortcut-display-bug-assets branch and can be deleted after merge.

Made with Orca 🐋

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]>
@coderabbitai

coderabbitai Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 44159ab3-8dc2-4bf6-bc70-46d73a5a15db

📥 Commits

Reviewing files that changed from the base of the PR and between 2668af0 and e547813.

📒 Files selected for processing (1)
  • src/renderer/src/components/settings/ShortcutsPane.tsx

📝 Walkthrough

Walkthrough

Updated the shortcuts pane grid container to stack the filter rail above the shortcut list below the xl breakpoint, while preserving the existing two-column layout at xl and larger screen sizes.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers the fix and testing, but it omits the required AI Review Report, Security Audit, and Notes sections from the template. Add the missing template sections, and format Testing as the required checklist with explicit results and any follow-up notes.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately describes the main UI fix below the xl breakpoint.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit 3a27fb5 into main Jul 18, 2026
2 checks passed
@nwparker
nwparker deleted the nwparker/shortcut-display-bug branch July 18, 2026 01:47
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
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