Repository navigation
fix(web): 变更视图三处交互优化(删冗余标题行 / 转到文件按钮 / 折叠全部 diff) - #16
Merged
Merged
Conversation
- 详情栏「变更」页签删除顶部「变更 branch → base」标题行(与右侧 面板头部重复),+A -D 汇总与加载 spinner 并入「N 个文件已更改」行 - 左右两侧变更文件行 hover 浮现「转到文件」按钮,点击直接打开文件 内容预览页签;已删除(D)文件隐形占位保持 ± 计数对齐 - 「N 个文件已更改」行最右新增「折叠全部 diff」按钮 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
改动内容
Web UI 变更(diff)视图的三处交互修复:
+A -D汇总与加载 spinner 并入「N 个文件已更改」行;右键菜单锚点data-desktop-review-kind="summary"迁移到新行,「展开/折叠/复制全部 diff」右键菜单行为不变。openFilePreview,经 PreviewDetailsPanel / SidePanel 分别下传。审阅要点
is-hidden):不可点,同时保证各行 ± 计数列对齐。grid-auto-flow: column+grid-auto-columns: max-content,否则默认 row 流会把按钮折到第二行。非 git 的会话级 ChangesList 复用同一 class,仅 3 子元素,不受影响。!important 前缀(v4 下行为不确定),改为专属 CSS 类.ace-review-collapse-all-btn。验证
pnpm build通过;pnpm test(前端 Node 纯逻辑测试)全过。--static-dir指向新 dist)在浏览器逐项实测:标题行消失、两侧「转到文件」均打开源码预览页签、折叠全部一键收起。🤖 Generated with Claude Code