From 0ba7edf4440f77ca7bcad78d0f2167d51e1454d6 Mon Sep 17 00:00:00 2001 From: Menghuan1918 Date: Fri, 16 Oct 2026 21:45:57 +0800 Subject: [PATCH] fix(git): keep selected change rows inside their groups Restore selection declarations removed with logRow during graph integration. Dangling selectors had inherited absolute positioning and borders from indent guides. Add parsed CSS and mounted browser regression coverage for staged, unstaged and conflict rows. --- docs/external-plugin-guide.md | 1 + .../2026-10-16-git-page-vscode-scm-merge.md | 19 +- src/client/changes/changes.module.css | 15 +- tests/e2e/git-layout.e2e.ts | 195 ++++++++++++++++++ tests/theme.spec.ts | 29 +++ 5 files changed, 255 insertions(+), 4 deletions(-) create mode 100644 tests/e2e/git-layout.e2e.ts diff --git a/docs/external-plugin-guide.md b/docs/external-plugin-guide.md index 047c7d66..0365a330 100644 --- a/docs/external-plugin-guide.md +++ b/docs/external-plugin-guide.md @@ -1149,6 +1149,7 @@ interface SettingsDescriptor { - **拖拽区退出**:交互 chrome(`.toggleCluster` / `.toggleButton` / `.tabBar`)统一 `-webkit-app-region: no-drag`(无边框壳拖拽带吞点击,#103/#111)。 - **拖拽区退出(视口层)**:宿主把每个**直挂 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` 是 `