From d91430a6e562b4680b981ce44e202fc60284c855 Mon Sep 17 00:00:00 2001 From: tianzishen Date: Wed, 18 Nov 2026 11:27:51 +0800 Subject: [PATCH] fix(ui): prevent file-panel tabs from clipping on overflow Let the scroll container fit the tab row and any native scrollbar. Keep the 36px desktop and 44px mobile tab heights. --- CHANGELOG.md | 1 + app/globals.css | 7 ++----- components/TabBar.tsx | 3 +-- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index caaea23d9..ed6b038b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ All notable changes to **omp-web** (`@kahme247/ompweb`) are documented in this f - **Windows updates no longer fail when the update status is read while it is written.** Host update state, the server worker's status and upgrade plans retry their atomic replacement for a moment when a concurrent reader holds the file, as the server's own update state already did. - **GitHub workflow watches no longer regress to stale run states.** Workflow updates retain GitHub's run timestamp and ignore older snapshots for the same or an earlier attempt, so a delayed `queued` response cannot follow a newer `in_progress` delivery. - **Keep sidebar transcript results aligned with expandable hits on every linked host.** Each daemon now searches its own active conversations, ignoring abandoned branches and pre-compaction messages. +- **Horizontal scrollbars no longer clip file-panel tabs.** The tab row keeps its full height in narrow panels, including on mobile. ## [v0.7.2] - 2026-11-14 diff --git a/app/globals.css b/app/globals.css index 2b734e313..4d9954a33 100644 --- a/app/globals.css +++ b/app/globals.css @@ -3782,6 +3782,7 @@ html[data-touch-targets="accessible"] .right-panel-toolbar { } .right-panel-toolbar { --right-panel-close-width: 44px; + --tab-height: 44px; } html:root .shell-toolbar-btn.right-panel-close-button { padding-top: env(safe-area-inset-top, 0px) !important; @@ -3793,7 +3794,7 @@ html[data-touch-targets="accessible"] .right-panel-toolbar { .right-panel-toolbar > div:first-child { display: flex; align-items: center; - min-height: 44px; + min-height: var(--tab-height); } .right-panel-toolbar > [role="toolbar"] > button { min-width: 40px; @@ -3802,10 +3803,6 @@ html[data-touch-targets="accessible"] .right-panel-toolbar { .right-panel-toolbar .tabbar-scroll { width: 100%; } - .right-panel-toolbar .tabbar-scroll, - .right-panel-toolbar .tabbar-tab { - height: 44px !important; - } } :root { diff --git a/components/TabBar.tsx b/components/TabBar.tsx index b00404783..3a93b3b99 100644 --- a/components/TabBar.tsx +++ b/components/TabBar.tsx @@ -212,11 +212,10 @@ export function TabBar({ tabs, activeTabId, onSelectTab, onCloseTab, explorerSel className="tabbar-scroll" style={{ display: "flex", - alignItems: "flex-end", background: "var(--bg-panel)", + // Let a classic horizontal scrollbar take space below the tabs. overflowX: "auto", flexShrink: 0, - height: "var(--tab-height)", }} > {onSelectNotifications && (