Bound chrome tab strip width / 限制顶部标签栏最大宽度#4427
Merged
Merged
Conversation
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.
Summary
max-width: 100%instead of allowingmax-width: noneto override the available area.Root Cause
PR #4422 reserved the right dock width in the chrome padding, but the themed tab list still allowed
max-width: none. That avoided some overlap but made the macOS chrome treat the right dock as unavailable tab space. With enough open tabs, the command-search button could move with the tab flow instead of staying fixed beside the right panel toggle.Solution
The tab strip is now bounded and scrollable, while macOS renders command search as a fixed chrome tool. macOS chrome padding reserves only the fixed search and panel-toggle controls, so the tab strip can use the full top chrome width even when the right dock is open.
Verification
npm run check:cssnpx tsx src/__tests__/app-chrome-tabs.test.tsgit diff --check origin/main-v2...HEAD