GeezerVison is showing github.com — fix(app): fade overflowing titlebar tabs by Hona · Pull Request #32082 · anomalyco/opencode
Conversation
Hona
commented
Jun 12, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Issue for this PR
Adds the titlebar tab overflow affordance.
Type of change
- Bug fix
- New feature
- Refactor / code improvement
- Documentation
What does this PR do?
Adds 24px edge fades to the titlebar tab strip when it overflows, so it is visible that more tabs exist off-screen. The left fade appears after scrolling past the start; the right fade disappears within 1px of the end.
The fade elements, gradients, dimensions, stacking, and wrapper match the design implementation exactly. A CSS scroll timeline drives only their visibility, removing JavaScript scroll state, effects, and microtask ordering. Unsupported browsers safely show no fades.
The existing tabsAreOverflowing signal still drives forceTruncate, but is refreshed by ResizeObserver on the scroller and inner row instead of per-tab onMount. This also refreshes truncation when the window or asynchronously-loaded tab content changes size.
How did you verify your code works?
- Drove the strip in headless Chromium and asserted the computed fade values at each scroll state: start -> right fade only, middle -> both, end -> left fade only, non-overflowing strip -> none. Also asserted the right fade returns when content widens while scrolled to the end (no scroll/resize event fires there, which is what rules out JS measurement).
- Verified the built CSS output (Tailwind/LightningCSS) preserves the visibility keyframes,
animation-range, timeline-scope, and scroll-timeline declarations.
bun typecheck (all packages) and bun test in packages/app (376 pass).
Screenshots / recordings
Behavior matches the existing design: 24px fades over --v2-background-bg-deep, on/off at the same scroll thresholds.
Checklist
- I have tested my changes locally
- I have not included unrelated changes in this PR
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR improves the desktop app titlebar tab strip UX by adding scroll-driven edge fades when the tab row overflows, making it visually clear that additional tabs exist off-screen. It also changes how overflow is detected so truncation updates reliably on resize and content changes without per-tab mount hooks.
Changes:
- Add a scroll-timeline + mask-based left/right fade effect to the titlebar tab scroller (guarded by
@supports).
- Replace per-tab
onMount overflow refreshes with ResizeObserver-driven refreshes on the scroller and inner row.
- Add a dedicated
titlebar.css stylesheet and wire it into the titlebar component.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File |
Description |
| packages/app/src/components/titlebar.tsx |
Hooks up the new titlebar tab scroller styling and switches overflow detection to createResizeObserver. |
| packages/app/src/components/titlebar.css |
Implements scroll-driven left/right edge fades for overflowing titlebar tabs via mask + scroll-linked animations. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Comment on lines
+443
to
+446
|
|
ref={(el) => {
|
|
|
tabScrollRef = el
|
|
|
createResizeObserver(el, refreshTabsAreOverflowing)
|
|
|
}}
|
Hona
changed the title
fix(app): fade overflowing titlebar tabs with scroll-driven mask
fix(app): fade overflowing titlebar tabs
Jun 12, 2026
Uh oh!
There was an error while loading. Please reload this page.
rldona
pushed a commit
to plazoleta-dev/FlupCode
that referenced
this pull request
Sep 24, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|