Repository navigation
fix(ui): restore normal content scrollbars and prevent chrome selection - #107349
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8e910abafc
ℹ️ 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".
| /* App chrome behaves like native controls: dragging across labels, tiles, | ||
| and navigation must not create accidental text selections. Text-entry | ||
| surfaces and document-like content opt back in below or in route CSS. */ | ||
| user-select: none; |
There was a problem hiding this comment.
Re-enable selection for document panes
When users view document-like panes outside chat, such as Usage session logs (ui/src/styles/usage.css:1773), Skill Workshop proposal markdown (ui/src/styles/skill-workshop.css:506), or Sessions transcript-search snippets (ui/src/styles/sessions.css:197), those surfaces do not opt back into user-select: text. Because user-select: none on body makes descendants effectively non-selectable unless overridden, this change prevents copying those history/proposal/result texts even though only app chrome was meant to be non-selectable.
Useful? React with 👍 / 👎.
8e910ab to
45c33bf
Compare
45c33bf to
3b02777
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3b02777a82
ℹ️ 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".
| /* App chrome behaves like native controls: dragging across labels, tiles, | ||
| and navigation must not create accidental text selections. Text-entry | ||
| surfaces and document-like content opt back in below or in route CSS. */ | ||
| user-select: none; |
There was a problem hiding this comment.
Restore selection on document content
When users try to copy document-like content outside chat, this global body { user-select: none; } still applies because the current patch only opts form controls and .chat-thread back into text selection. Fresh evidence from the current tree: ui/src/styles/usage.css:1773 session log bodies, ui/src/styles/sessions.css:197 transcript-search snippets, and ui/src/styles/skill-workshop.css:506 proposal markdown have no user-select: text, so those logs/results/proposals become non-selectable even though they are content users reasonably copy.
Useful? React with 👍 / 👎.
|
Merged via squash.
|
Closes #107313
What Problem This Solves
Fixes an issue where Control UI users had an undersized scrollbar across the entire app instead of only in compact sidebars. Dragging across navigation, settings tiles, and other app chrome also selected text accidentally, while transcript and input text still need normal selection.
Why This Change Was Made
The default content scrollbar now uses a normal hit target, with compact sizing inherited only inside the regular and settings sidebars. App chrome is non-selectable by default, while editable controls and chat transcripts explicitly retain text selection.
User Impact
Main content and chat get a normal large scroll target. Sidebar actions keep their compact space, accidental chrome selection stops, and chat/input text remains selectable.
Evidence
tbx_01kxfxzy03vfcb199p6cnmr0xf(Actions run): focused browser suite passed, 5/5 tests.pnpm check:changedpassed its UI/core-test/docs lanes, including formatting, i18n, UI/core-test typechecks, and lint fan-out.tbx_01kxfz7m5vpysg7wemd3tgzwx6(Actions run) passed all six clauses, including filtering, sidebar navigation, refresh retry, and measured 6px/12px contextual scrollbars.AI-assisted with Codex; implementation and behavior proof reviewed before submission.