Skip to content

Studio: consistent rounded hover boxes for nav icon buttons - #7970

Merged
shimmyshimmer merged 1 commit into
mainfrom
studio-titlebar-icon-hover-consistency
Aug 6, 2026
Merged

shimmyshimmer merged 1 commit into
mainfrom
studio-titlebar-icon-hover-consistency

Conversation

@shimmyshimmer

Copy link
Copy Markdown
Member

Nav icon buttons in the desktop app used two different hover shapes and four different sizes. This unifies them.

Before

  • Circular hover: sidebar search, sidebar collapse, temporary chat, research activity, run settings
  • Rounded rectangle hover: titlebar back/forward/sidebar toggle, new chat, window controls
  • Sizes: 28px (sidebar), 32px (window controls), 33px (titlebar, new chat, collapsed rail was 33x32), and the chat header trio read --studio-chat-control-height with a 34px fallback

The chat header trio resolved to 33px on desktop since --studio-chat-control-height is 33px in both chrome modes, so the 34px fallback only applied on web.

After

Every nav icon button is a 30px square with rounded-[10px].

Button Before After
Sidebar search 28px circle 30px rounded rect
Sidebar collapse 28px circle 30px rounded rect
Collapsed rail expand 33x32 rounded rect 30px rounded rect
Temporary chat 33px circle 30px rounded rect
Research activity 33px circle 30px rounded rect
Run settings 33px circle 30px rounded rect
Titlebar back / forward / sidebar toggle 33px rounded rect 30px rounded rect
New chat 33px rounded rect 30px rounded rect
Window minimise / maximise / close 32px rounded rect 30px rounded rect

Glyphs stay at size-icon (16px at default scale), giving 7px padding per side.

Notes

  • The chat header trio now uses a literal size-[30px] instead of --studio-chat-control-height. That variable is still used by the model selector and context usage bar beside them, which keep their 33px height. The buttons are vertically centred in the row, so the 3px difference does not misalign anything.
  • The aria-hidden spacer in DesktopTitlebarNavigation that holds the sidebar toggle slot open on mobile moves to 30px to match.
  • Window controls only render on Windows and Linux. macOS uses native traffic lights.

Testing

  • npm run typecheck passes
  • npm run build passes
  • biome check on the three touched files reports only pre-existing diagnostics, none on the changed lines

Sidebar search, sidebar collapse and the chat header controls used a
circular hover, while the titlebar back/forward buttons used a rounded
rectangle. Sizes also varied (28px, 32px, 33px, 34px fallback).

Move every nav icon button to a 30px rounded-[10px] box.
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 26c5414484

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@shimmyshimmer
shimmyshimmer merged commit c4144da into main Aug 6, 2026
40 of 42 checks passed
@shimmyshimmer
shimmyshimmer deleted the studio-titlebar-icon-hover-consistency branch August 6, 2026 02:59
danielhanchen added a commit that referenced this pull request Aug 6, 2026
#7970 moved every nav icon button to a 30px rounded-[10px] box, but
tests/studio/test_desktop_reliability_frontend_contract.py still asserts the
old 33px literals, so main is red and every open PR inherits the failure.

Two assertions in
test_collapsed_tauri_keeps_history_arrows_and_adds_new_chat_by_model_picker:
the titlebar navigation button class and the chat page model picker button
class. The second is currently masked by the first.

The behaviour the test guards is unchanged: the history arrows survive collapse
and appear exactly once each. Only the hardcoded sizes were stale.

Fails before, passes after; tests/studio is otherwise unaffected.
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