Skip to content

fix(ui): prevent file-panel tabs from clipping on overflow - #525

Closed
TianZishen wants to merge 1 commit into
ompweb-dev:mainfrom
TianZishen:fix/file-panel-tab-scrollbar-clipping
Closed

TianZishen wants to merge 1 commit into
ompweb-dev:mainfrom
TianZishen:fix/file-panel-tab-scrollbar-clipping

Conversation

@TianZishen

@TianZishen TianZishen commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Let the file-panel tab strip size to the tabs plus any native horizontal scrollbar, instead of letting the scrollbar consume the fixed tab height.
  • Preserve the 36px desktop tabs, 44px mobile targets, and native horizontal scrolling.

Verification

  • Opened a long Markdown filename in Chromium with space-consuming scrollbars. The 11px scrollbar left the entire 36px desktop row visible, and horizontal wheel input scrolled the strip.
  • At a 390px viewport, the scrollbar left the entire 44px mobile row visible.

Summary by CodeRabbit

  • Bug Fixes
    • Fixed file-panel tabs being clipped by horizontal scrollbars. Tab rows now retain their full height in narrow panels, including on mobile.

Let the scroll container fit the tab row and any native scrollbar.
Keep the 36px desktop and 44px mobile tab heights.
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The tab bar and mobile toolbar sizing rules changed to preserve the tab row’s full height in narrow panels. The Unreleased changelog records this fix.

Changes: File-panel tab row sizing

Layer / File(s) Summary
Tab row sizing and mobile toolbar rules
app/globals.css, components/TabBar.tsx, CHANGELOG.md
The mobile toolbar sets --tab-height to 44px and uses it as the first child’s minimum height. The tab bar no longer has a fixed height or bottom alignment. Fixed heights were removed from .tabbar-scroll and .tabbar-tab, while .tabbar-scroll retains its full width. The changelog records the tab-row height fix.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix · Severity of issue fixed: Low

Suggested reviewers: andrebrait, kahme247

Merge Risk: Minimal · up to d9143

This fixes file-panel tabs being clipped when a horizontal scrollbar appears, while keeping desktop and mobile tab heights. It is a small layout change that is easy to revert, and no merge-blocking risk was found.

Security architecture risk: Minimal · up to d9143

The changes adjust tab-row sizing around horizontal scrollbars. They introduce no identified security risk or change to access controls, data handling, or recovery guarantees.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: file-panel tabs no longer clip when the horizontal scrollbar takes space. The changeset removes the fixed 44px height and the flex-end alignment from the tab bar conta…
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.
Full details: Title check

Explanation

The title names the main change: file-panel tabs no longer clip when the horizontal scrollbar takes space. The changeset removes the fixed 44px height and the flex-end alignment from the tab bar container and sets a token-based minimum height in globals.css. The changelog entry and PR objectives describe the same fix. The title uses the conventional fix(ui) format and is specific.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b97aa130-e4c8-4a84-8072-bdf34ddf551b
Commits

Reviewing files that changed from the base of the PR and between ad4272c and d91430a.

Files selected for processing: 3

  • CHANGELOG.md
  • app/globals.css
  • components/TabBar.tsx

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

@kahme247

Copy link
Copy Markdown
Collaborator

Hi, thanks for this PR. It currently conflicts with main and can't be merged as-is — please rebase it onto current main and resolve the conflicts. Once it's rebased I'll re-run the checks.

This is rebase-only: the only conflict is CHANGELOG.md and CI was green on the head. Rebase onto current main and I'll re-check it right away.

@kahme247

Copy link
Copy Markdown
Collaborator

Superseded by #547 — a rebase of this PR onto current main with a fresh CHANGELOG entry under [Unreleased], since no rebase came after the maintainer's request. The change itself is unchanged (credit to @TianZishen). Closing this original; please follow #547.

@kahme247 kahme247 closed this Nov 23, 2026
1zun4 pushed a commit to 1zun4/ompweb that referenced this pull request Nov 23, 2026
1zun4 pushed a commit to 1zun4/ompweb that referenced this pull request Nov 23, 2026
…11-23

fix(ui): prevent file-panel tabs from clipping on overflow (rebased from ompweb-dev#525)
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.

2 participants