From 38d94bdb98cf03b89540e9ca0fcea46e00161e41 Mon Sep 17 00:00:00 2001 From: Menghuan1918 Date: Sat, 17 Oct 2026 11:33:55 +0800 Subject: [PATCH] fix(git): let commit graph fill available sidebar height Replace the 460px viewport cap with flex allocation. Bound the graph section minimum so long history scrolls internally instead of stretching the outer list. Verify tall and narrow panes, preview selection, folding and long Changes lists in the mounted host. --- CHANGELOG.md | 1 + docs/external-plugin-guide.md | 1 + src/client/changes/GitLens.tsx | 4 +-- src/client/changes/changes.module.css | 11 ++++--- tests/changes-tab.spec.tsx | 5 +++ tests/e2e/git-graph.e2e.ts | 45 ++++++++++++++++++++++++++- tests/theme.spec.ts | 19 +++++++++++ 7 files changed, 79 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e17e4dc3..e07b1236 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ ### Unreleased +- **提交图使用完整可用高度**:移除 `min(60vh, 460px)` 高度限制,更改区下方到固定底栏之间的空间全部分配给图谱;打开差异预览或缩放窗口时自动调整。长历史仍在图谱内部滚动,待提交文件很多时保留原有外层滚动,避免把整个页面撑高。 - **dsh-context 可选联动**:Context 侧栏入口可用时,在 Agent 详情、后台任务输出窗和会话标题栏提供诊断入口;后台任务仅查看明确的真实属主,不改变任务输出观察或停止命令的会话语义。跨会话先定位目标再打开 Context,复用其他分栏已有的标签;用户继续导航时取消,等待最多 10 秒。未安装、禁用或仅显示会话标签页时隐藏入口,不修改上下文、不恢复 Agent 执行,也不修改 dsh-context 偏好。全部入口共用 Cordis 作用域内的可选适配器,空闲时不新增轮询。 ### v0.27.0 diff --git a/docs/external-plugin-guide.md b/docs/external-plugin-guide.md index cf19c841..a7b2709d 100644 --- a/docs/external-plugin-guide.md +++ b/docs/external-plugin-guide.md @@ -1151,6 +1151,7 @@ interface SettingsDescriptor { - **拖拽区退出(视口层)**:宿主把每个**直挂 body 的子元素**都设成 `no-drag`(`html[data-platform=darwin] body > :not(#root)`,选择器含 id,只能靠 `!important` 压过),而 app-region **无视 `pointer-events`**——插件宿主就是这样一个 body 子元素,在 Electron 里该值还会传到它内部的**铺满视口的面板层**(#772 的 CDP 实测;挂载 lane 用的浏览器引擎不传播该属性,所以面板层自己也声明了同一条规则),于是它把下面每条 `[data-window-drag]` 拖拽带一起抵消(窗口拖一次就失效,同时丢掉 macOS 双击标题栏缩放,issue #772)。契约:装饰性的视口层用**中性值** `-webkit-app-region: initial !important` 退出计算(`initial` 的计算值 `none` 不扣减拖拽区;注意**字面量 `none` 不是中性值**——它计算成 `no-drag`,是扣减值),层内的面板/控件再声明 `no-drag` 保住点击;当前覆盖 `[data-dsh-better-sidebar]`、`[data-dsh-panel-host]`(`> *` 保持 `no-drag`)与 `.mermaidModal`(放大视图是第二个**持久**铺满视口的 body 直挂层)。**交互弹层不要加 `initial`**(`.selectionPopup` 是 `