Repository navigation
Reduce minimum tab width from 88px to 72px - #18871
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe tab container minimum width changes from Merge Risk: ⚪ Minimal · up to Tabs can use less horizontal space in narrow layouts, with tests updated to match the new 72px minimum width. No merge-blocking risk is identified. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Tab minimum width 88px → 72px — lowers the
min-w-*floor inTAB_CONTAINER_WIDTH_CLASSES, used by all four tab renderers (BrowserTab,EditorFileTab,SortableTab,ClientHostedBrowserTab). - Test assertion updated in lockstep —
tab-title-tooltip.test.tsxpins the width classes literally (deliberately, per its comment) and both thetoContainandnot.toContainassertions now matchmin-w-[72px].
The change is self-contained: tab-strip measurement/scroll/overflow logic all reads live clientWidth/scrollWidth rather than any hardcoded pixel constant, and the only other min-w-[72px] usages are the rename inputs in EditorFileTab and SortableTab, so the new container floor aligns with the existing input floor. No cross-platform, SSH, or mobile surface is touched.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

Problem
Tabs currently have an 88px minimum width, which wastes space in narrow layouts like side-by-side editors or terminal panes.
Solution
Reduce the minimum tab width to 72px, allowing tabs to shrink further and better utilize constrained spaces.
ELI5
Tabs are now allowed to get smaller, giving more room for content when you have narrow panes.
What Changed
Updated the minimum width constraint in tab styling from 88px to 72px:
TAB_CONTAINER_WIDTH_CLASSESconstant insrc/renderer/src/components/tab-bar/tab-width-rules.tssrc/renderer/src/components/tab-bar/tab-title-tooltip.test.tsxWhy
This change improves UX in narrow layouts while maintaining tab readability and usability at the smaller size.
Linked Issue
Fixes #
Visual Proof
N/A — This is a CSS constant update with no new visual behavior, verified through existing tab rendering with the new constraint.
Testing
AI Disclosure
Review
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)