From fd0b2fdf02afe3c096e6f6fb00a2836a6e26bfc1 Mon Sep 17 00:00:00 2001 From: baiqing Date: Mon, 4 May 2026 18:26:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(overview):=20Codex=20P1=20+=20P2=20?= =?UTF-8?q?=E2=80=94=20=E4=BF=9D=E7=95=99=20fallback=20scroll=20+=20?= =?UTF-8?q?=E5=B5=8C=E5=A5=97=20scroller=20=E5=90=8C=E6=AD=A5=E7=BB=86?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Codex P1:之前 displayTab==='overview' 时 wrapper 用 overflow:hidden, 窗口被压缩或文案变长(i18n / 字体放大)后底部 Recent Card 整片不可达, 没有 scroll 兜底路径。 修法:所有 tab 一律 overflow:auto。Overview.tsx 内部已经用 flex 把底部 行 grow 到撑满 → 正常尺寸下内容刚好占满,浏览器不显示 scrollbar;真挤 不下了 fallback 出细 scrollbar。"整屏不滚"的视觉效果保留,但有 scroll 保险。 Codex P2:::-webkit-scrollbar 不级联到子节点,所以 .ol-thinscroll 加 在 wrapper 上对 History / SettingsModal 等内层 overflow:auto 容器无效。 把 className 显式补到这些嵌套 scroller: - History 左侧列表 + 右侧详情 Card(Card 组件加 className prop 透传) - Settings.tsx 内嵌模式右栏 - SettingsModal personalize/about 块 QaPanel 是独立窗口,不在主壳 thinscroll 范围内,保留默认。 --- openless-all/app/src/components/FloatingShell.tsx | 14 +++++++++----- openless-all/app/src/components/SettingsModal.tsx | 2 +- openless-all/app/src/pages/History.tsx | 4 ++-- openless-all/app/src/pages/Settings.tsx | 1 + openless-all/app/src/pages/_atoms.tsx | 4 +++- 5 files changed, 16 insertions(+), 9 deletions(-) diff --git a/openless-all/app/src/components/FloatingShell.tsx b/openless-all/app/src/components/FloatingShell.tsx index e1a7372f..1d9f2fe3 100644 --- a/openless-all/app/src/components/FloatingShell.tsx +++ b/openless-all/app/src/components/FloatingShell.tsx @@ -260,13 +260,17 @@ function FloatingShellBody({ os, initialTab, initialSettings }: { os: OS; initia 两列内部各自的 overflow:auto 才能独立滚动 */} -
+
{loading &&
{t('common.loading')}
} {!loading && filtered.length === 0 && (
@@ -164,7 +164,7 @@ export function History() {
- + {item ? ( <>
diff --git a/openless-all/app/src/pages/Settings.tsx b/openless-all/app/src/pages/Settings.tsx index 9ad3caeb..88cf7d0a 100644 --- a/openless-all/app/src/pages/Settings.tsx +++ b/openless-all/app/src/pages/Settings.tsx @@ -115,6 +115,7 @@ export function Settings({ embedded = false, initialSection = 'recording' }: Set ))}