Repository navigation
fix(ui): unify find bars, settings spacing, viewer toolbars, and focus rings - #2565
Open
kitlangton wants to merge 2 commits into
Open
kitlangton wants to merge 2 commits into
kitlangton wants to merge 2 commits into
Conversation
This branch has not been deployed
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.
Pressing
⌘Fnow opens the same compact search bar in sessions, terminals, and file viewers, while settings cards, viewer toolbars, browser prompts, and keyboard focus rings follow shared tokens.Terminal search previously lacked previous/next step buttons and code search used a taller dark-grey bar with an always-visible
0/0counter. Search behaviour, shortcuts, and file editing are unchanged.❌ Before
⌘Fshowed three different bars:240×28in sessions (×announced as "Find in session"),220×28without step buttons in terminals, and32 pt#121212showing0/0when empty in files and diffs.28 ptat1008 pt, paired a16 pt-padded Server Connection card above20 pt-padded Preferences cards, and pulled row descriptions upward with negative margins.25×25,13 pticons), browser install actions, and top-bar dismiss buttons (20vs28 pt) mixed sizes and omitted standard keyboard focus rings or press states.✅ After
240×28 ptbg_basebar (13 ptinput,11 pttabular match count hidden when empty,20×204 pt-radius step and close buttons with⌘G/⇧⌘G/Esctooltips, and an outer focus ring that never shifts inner text).800–1008 pt, aligns Server cards on20 pthorizontal padding with an11 ptmicro-badge, and spaces row descriptions with explicit18 ptline height and4 ptgap.28×28,16 pticons, visible image metadata), browser empty/retry/dismiss controls, plugin inspector chrome (12 ptcorners,0.5 ptdividers,440/530weights), terminal paste/link confirmation modals, and remote folder picker menus share concentric popover geometry and forced-color-aware focus rings.📊 Proof
⌘Fbar220×28 pt, no Prev/Next buttons,2 ptclose radius240×28 pt,20×20 r4Prev/Next/Close +⌘G/⇧⌘G/Esctooltips⌘Fbar32 ptheight,#121212/#f8f8f8, shows0/0when empty240×28 ptbg_base+floating, count hidden when empty25×25 pt(13 pticon), no press/focus, hover-hidden image meta28×28 pt(16 pticon) with press/focus, image meta visible at rest28 ptsnap at1008 pt,16 ptvs20 ptcard spine,9 ptbadge800–1008 ptramp, aligned20 ptcards,11 ptbadge20/28 ptdismiss,6 ptinspector cornerswidgets::button,24×24dismiss,12 ptinspector +FocusExt⌘F— Before⌘F— After⌘F& toolbar — Before⌘F& toolbar — After👀 Read:
crates/opencode-code-view/src/find_bar.rsandfeatures/terminal-surface/src/find.rs, where clicking Previous/Next steps the match while keeping keyboard focus on the search input, andfeatures/settings/src/shell.rsfor the800..=1008 ptrail/gutter ramp. The rest is routine.🔍 Found in a UI audit · no user reports · verified against 2× headless renders
Checks run
cargo check --bin opencode-desktop: passcargo check -p session-view --examples: passcargo check -p opencode-web --target wasm32-unknown-unknown: passcargo build --bin opencode-desktop: pass (0 warnings in touched files)bash scripts/guardrails.sh: 12/12 pass