Repository navigation
Conversation
) With many tabs open each tab shrinks toward its 28px floor. At <= 64px the compact layout centers the 20px close button, and hover-reveal only makes it transparent, so it stays a live hit target covering nearly the whole tab: clicking to select a tab closed it. Inactive compact tabs now hide the close button (the browser convention), so a click anywhere selects the tab. The active tab keeps it, and middle-click still closes any tab. Also label the session tab close button (the draft tab's already was). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
jacktrnr
marked this pull request as ready for review
November 23, 2026 22:23
Contributor
Author
|
Verified hands-on in the combined 0.4.1-beta test build ( |
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.
Closes #2016
Problem
With many session tabs open, clicking a narrow tab to select it often closed it.
Root cause
Each tab slot is
w-56 min-w-7 flex-shrink, so with many tabs open the tabs shrink toward 28px. At or below 64px, the compact@containerlayout intitlebar-tab-nav.csshides the title and centers the 20px close button.hover-revealonly sets the button's opacity to 0, so the button is still a live hit target. A centered 20px target in a 16–52px content box covers most of the tab, or all of it.Fix
This is a minimal change on
main's current tab strip. It does not build on the parked #2161.display: none), so a click anywhere on the tab selects it. This follows the browser convention for crowded tab strips. The active tab keeps its close button. Middle-click still closes any tab, and so does the close-tab command.aria-label="Close tab"to the session tab's icon-only close button. The draft tab already had one, and the design system requires it.No new tokens, colors, spacing, or radius values. Wide tabs are unchanged.
Tests
New
titlebar-tab-close-target.test.ts(source/CSS structure assertions, the repo's existing pattern for layout rules happy-dom can't evaluate):[data-slot="tab-close"]on non-active tabs;aria-label.Two of these cases failed before the fix, and all pass after.
bun test --conditions=solid --preload ./happydom.ts src/components/titlebar(materialized tree): 73 pass, 0 fail.Hit-testing in headless Chrome (
elementFromPointat the tab center) with the real CSS:refresh_manifest.mjswas run, anddrift_gate.mjsPASSES.Manual check
Open about 15 session tabs so they compact. Clicking any inactive tab should select it and never close it. The active tab still shows its close button. Middle-click closes any tab. Check this in both light and dark themes; no colors changed.
🤖 Generated with Claude Code