Skip to content

Reduce minimum tab width from 88px to 72px - #18871

Merged
AmethystLiang merged 1 commit into
mainfrom
reduce-min-tab-size
Sep 5, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
reduce-min-tab-size

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2 0
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 0

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:

  • Modified TAB_CONTAINER_WIDTH_CLASSES constant in src/renderer/src/components/tab-bar/tab-width-rules.ts
  • Updated corresponding test assertions in src/renderer/src/components/tab-bar/tab-title-tooltip.test.tsx

Why

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

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

AI Disclosure

Review

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and 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

  • This PR is small and focused
  • I explained what changed and why (including ELI5)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: 9667fe6d-dd1e-423e-88b7-d9af6897a2bf

📥 Commits

Reviewing files that changed from the base of the PR and between af82126 and 4310d53.

📒 Files selected for processing (2)
  • src/renderer/src/components/tab-bar/tab-title-tooltip.test.tsx
  • src/renderer/src/components/tab-bar/tab-width-rules.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The tab container minimum width changes from min-w-[88px] to min-w-[72px]. The related test helper updates its positive and negative assertions to use min-w-[72px]. Other width classes remain unchanged.

Merge Risk: ⚪ Minimal · up to 4310d

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)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description clearly explains the problem, solution, scope, and rationale. However, the required linked issue is empty, testing status is not provided, and the checklist remains unchecked. Add a valid issue reference after Fixes #, document manual and automated test results, complete the AI Disclosure and Review sections as applicable, and update the checklist to reflect the completed verification steps.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the primary change: reducing the minimum tab width from 88px to 72px.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Tab minimum width 88px → 72px — lowers the min-w-* floor in TAB_CONTAINER_WIDTH_CLASSES, used by all four tab renderers (BrowserTab, EditorFileTab, SortableTab, ClientHostedBrowserTab).
  • Test assertion updated in lockstep — tab-title-tooltip.test.tsx pins the width classes literally (deliberately, per its comment) and both the toContain and not.toContain assertions now match min-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.

Pullfrog  | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

@AmethystLiang
AmethystLiang merged commit 062db77 into main Sep 5, 2026
29 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant