Repository navigation
fix(sidebar): keep projects reachable at high zoom - #2522
Merged
Merged
Conversation
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 |
Collaborator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复内容
放大界面或缩短窗口后,置顶会话和最近会话会随侧栏可用高度收缩,在各自列表内滚动。项目列表保留一个项目标题和一条会话所需的空间。当侧栏放不下各区的最小高度时,可以滚动侧栏主体访问项目和设置。恢复窗口空间后,已加载的会话数量不会重置。
需求关联
Closes #2521
验证
在 macOS arm64 的 Electron 43.6.0 隔离渲染器里,用一条置顶会话和 17 条已加载的最近会话复测。有效视口高度为 490 CSS px 时,修复前最近会话占 291 px,项目列表只剩 2 px。修复后最近会话占 118 px,项目列表有 60 px,并通过了真实鼠标点击检查。
回归测试也验证了多条置顶会话能收缩、极端缩放时可以滚动访问项目和设置、恢复缩放后仍保留已加载记录。侧栏相关测试共 21 项通过,样式检查通过,组件规范和 E2E 场景已更新。Windows 安装版和原生菜单快捷键尚未实测。