Skip to content

fix(sidebar): keep projects reachable at high zoom - #2522

Merged
Tioit-Wang merged 1 commit into
vastsa:mainfrom
Linuxdazhao:codex/sidebar-height-2521
Nov 24, 2026
Merged

Tioit-Wang merged 1 commit into
vastsa:mainfrom
Linuxdazhao:codex/sidebar-height-2521

Conversation

@Linuxdazhao

Copy link
Copy Markdown
Contributor

修复内容

放大界面或缩短窗口后,置顶会话和最近会话会随侧栏可用高度收缩,在各自列表内滚动。项目列表保留一个项目标题和一条会话所需的空间。当侧栏放不下各区的最小高度时,可以滚动侧栏主体访问项目和设置。恢复窗口空间后,已加载的会话数量不会重置。

需求关联

Closes #2521

验证

在 macOS arm64 的 Electron 43.6.0 隔离渲染器里,用一条置顶会话和 17 条已加载的最近会话复测。有效视口高度为 490 CSS px 时,修复前最近会话占 291 px,项目列表只剩 2 px。修复后最近会话占 118 px,项目列表有 60 px,并通过了真实鼠标点击检查。

回归测试也验证了多条置顶会话能收缩、极端缩放时可以滚动访问项目和设置、恢复缩放后仍保留已加载记录。侧栏相关测试共 21 项通过,样式检查通过,组件规范和 E2E 场景已更新。Windows 安装版和原生菜单快捷键尚未实测。

@Tioit-Wang

Copy link
Copy Markdown
Collaborator

Review: this addresses the reproduced 490 CSS px sidebar squeeze and has an isolated Electron interaction regression test for loaded sessions, project-row clickability, extreme zoom scrolling, and restored layout. CI is green on the PR candidate. I did not merge because the head is based on 6b8ff1e and is 45 commits behind/diverged from current origin/main d07b742; refresh against current main and rerun the base/CI gates. No functional blocker found in the reviewed diff.

@Tioit-Wang
Tioit-Wang merged commit 9f4099a into vastsa:main Nov 24, 2026
6 checks passed
@Tioit-Wang

Copy link
Copy Markdown
Collaborator

本议题已通过维护者续接 PR #2559 合并,保留了本 PR 的原始提交历史,并在最新 main 上通过完整 CI/Electron 回归。为避免重复合并,我会关闭这个已被 #2559 取代的 PR;感谢你提交修复。

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.

[Bug] 放大界面缩放后,「最近会话」挤压侧边栏项目区

2 participants