Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

fix(desktop): match the work-panel resize grip to the sidebar

vastsa0ba152c70160
diff --git a/apps/desktop/src/styles/work-panel.css b/apps/desktop/src/styles/work-panel.css
index 6069b8c1e..95fb2f88c 100644
--- a/apps/desktop/src/styles/work-panel.css
+++ b/apps/desktop/src/styles/work-panel.css
@@ -92,41 +92,34 @@
.work-panel-resize::after {
content: "";
position: absolute;
- inset-block: 0;
+ top: 50%;
left: 50%;
- width: 1px;
- background: transparent;
- transform: translateX(-50%);
- transition:
- width var(--motion-duration-fast) var(--motion-ease-out),
- background var(--motion-duration-fast) var(--motion-ease-out);
-}
-
-.work-panel-resize:hover::after,
-.work-panel-resize:active::after,
-.work-panel-resize:focus-visible::after,
-.work-panel[data-resizing="true"] .work-panel-resize::after {
width: 2px;
- background: var(--ds-focus);
+ height: 32px;
+ border-radius: var(--radius-full);
+ background: color-mix(in oklab, var(--ds-text-primary) 20%, transparent);
+ opacity: 0;
+ transform: translate(-50%, -50%);
+ transition: opacity var(--motion-duration-fast) var(--motion-ease-out);
}
-/*
- * Pointer states paint a tint of that accent instead of the solid value. The
- * accent is pure white on the dark plate, so a full-height solid hairline reads
- * as a bright seam rather than a control; 50% holds the line at roughly 5.3:1
- * against the dark plates and 3.3:1 against the light ones. Keyboard focus keeps
- * the full accent, because a focus ring is not a pointer cue.
- */
.work-panel-resize:hover::after,
.work-panel-resize:active::after,
+.work-panel-resize:focus-visible::after,
.work-panel[data-resizing="true"] .work-panel-resize::after {
- background: color-mix(in oklab, var(--ds-focus) 50%, transparent);
+ opacity: 1;
}
.work-panel-resize:focus-visible {
outline: none;
}
+.work-panel-resize:focus-visible::after,
+.work-panel-resize:active::after,
+.work-panel[data-resizing="true"] .work-panel-resize::after {
+ background: var(--ds-accent);
+}
+
:root[data-work-panel-resizing="true"],
:root[data-work-panel-resizing="true"] * {
cursor: col-resize !important;
diff --git a/apps/desktop/test/work-panel.test.mjs b/apps/desktop/test/work-panel.test.mjs
index 866cf8e5a..d240795b8 100644
--- a/apps/desktop/test/work-panel.test.mjs
+++ b/apps/desktop/test/work-panel.test.mjs
@@ -413,16 +413,16 @@ test("work panel separator exposes internal panel width resizing", () => {
assert.match(globalStyles, /\.work-panel-resize \{[^}]*width:\s*10px;/s);
assert.match(globalStyles, /touch-action:\s*none/);
assert.match(globalStyles, /\.work-panel-resize:focus-visible/);
- // The hover/drag line is a tint of the accent, never the solid value: the
- // accent is pure white on the dark plate, so a solid full-height hairline
- // reads as a bright seam rather than a control. Keyboard focus keeps it.
+ // Same short grip as the sidebar: 32px, centered, no full-height rail.
+ const resizeMarker =
+ globalStyles.match(/\.work-panel-resize::after\s*\{[^}]+\}/s)?.[0] ?? "";
+ assert.match(resizeMarker, /top:\s*50%/);
+ assert.match(resizeMarker, /height:\s*32px/);
+ assert.match(resizeMarker, /border-radius:\s*var\(--radius-full\)/);
+ assert.match(globalStyles, /\.work-panel-resize:hover::after,/);
assert.match(
globalStyles,
- /\.work-panel-resize:hover::after,\s*\.work-panel-resize:active::after,\s*\.work-panel\[data-resizing="true"\] \.work-panel-resize::after \{\s*background: color-mix\(in oklab, var\(--ds-focus\) 50%, transparent\)/s,
- );
- assert.match(
- globalStyles,
- /\.work-panel-resize:focus-visible::after,[\s\S]*?\{\s*width: 2px;\s*background: var\(--ds-focus\);/,
+ /\.work-panel-resize:focus-visible::after,[\s\S]*?background:\s*var\(--ds-accent\)/,
);
});
diff --git a/docs/spec/04-ux/07-ui-design-system.md b/docs/spec/04-ux/07-ui-design-system.md
index e127c33e2..03989ae43 100644
--- a/docs/spec/04-ux/07-ui-design-system.md
+++ b/docs/spec/04-ux/07-ui-design-system.md
@@ -661,7 +661,7 @@ and give plain tool blocks a fill in light only.
| Selection (theme, language, level) | Deeper tint or raised pill plus the existing check mark; no selected border |
| Floating layers (menus, popovers, dialogs, tooltips, toasts, hover cards) | `0 0 0 0.5px border-default` + shadow on the container; no rules inside |
| Focus rings | accent tint, 2px box-shadow |
-| Control affordances (switch off-ring, resize handles) | Allowed; they are the control, not a partition. The work-panel divider paints a 50% accent tint on hover and while dragging (roughly 5.3:1 dark, 3.3:1 light); the solid accent is reserved for keyboard focus |
+| Control affordances (switch off-ring, resize handles) | Allowed; they are the control, not a partition. The sidebar and work-panel dividers paint a 32px centered grip on direct hover/focus, not a full-height rail; keyboard focus and an in-progress drag use the solid accent |
## 7. Iconography
diff --git a/docs/spec/04-ux/08-component-spec.md b/docs/spec/04-ux/08-component-spec.md
index 1099d3483..0a0124d25 100644
--- a/docs/spec/04-ux/08-component-spec.md
+++ b/docs/spec/04-ux/08-component-spec.md
@@ -953,10 +953,10 @@ singleton without duplicating it:
active tab uses the normal active fill, while overflow is handled by the
strip rather than by a second resource list. Launcher rows use the same
fast hover/focus feedback as other panel rows.
-- Active tabs, file-tree rows, diff headers, and the resize handle ease hover
- fills with `--motion-duration-fast` / `--motion-ease-out`. The handle's 2px
- line is a 50% accent tint while hovered or dragged — the solid accent is pure
- white on the dark plate, so only keyboard focus paints it
+- Active tabs, file-tree rows, and diff headers ease hover fills with
+ `--motion-duration-fast` / `--motion-ease-out`. The resize handle matches the
+ sidebar: a 32px centered 2px grip that appears on direct hover/focus, with
+ the solid accent reserved for keyboard focus and an in-progress drag
- Browser URL and empty-tool chrome share the light inset field treatment used
by Settings controls (D148)
- Every empty state in the panel — the no-resource body and each tab's own —
diff --git a/docs/spec/06-delivery/04-e2e-test-plan.md b/docs/spec/06-delivery/04-e2e-test-plan.md
index 781e2c1fe..91e1e3506 100644
--- a/docs/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/spec/06-delivery/04-e2e-test-plan.md
@@ -4772,7 +4772,7 @@ identify the platform validation still needed.
- Work panel body reads as quiet `#fafafa` inset paper with a white header band.
- Settings fields, browser URL, segment tracks, and shortcut keycaps use light inset fills; focused fields lift with a neutral ring.
- Toggle on-state keeps a white knob on the near-black track.
- - Hover fills on file-tree/diff/resize ease with shared motion tokens, and the divider's 2px line is a 50% accent tint while hovered or dragged, so it never paints a solid white hairline across the dark plate; keyboard focus keeps the full accent.
+ - Hover fills on file-tree/diff/resize ease with shared motion tokens, and the divider matches the sidebar: a 32px centered grip on direct hover/focus, not a full-height hairline; keyboard focus and an in-progress drag use the solid accent.
- Light dialog scrim is softer than the dark 45% veil (~28% ink).
- The dock question card paints the composer plate in both palettes — light
`#ffffff` with the composer shadow, dark 96% `#212121` — and its option rows
diff --git a/docs/zh-CN/spec/04-ux/07-ui-design-system.md b/docs/zh-CN/spec/04-ux/07-ui-design-system.md
index 3fd20d71a..70d4d847c 100644
--- a/docs/zh-CN/spec/04-ux/07-ui-design-system.md
+++ b/docs/zh-CN/spec/04-ux/07-ui-design-system.md
@@ -586,7 +586,7 @@ D419。主题专属取值应写在 `styles/tokens.css` 的标记块里,两套
| 选中态(主题、语言、级别) | 更深的色调或抬起胶囊,加已有的对勾;不画选中边框 |
| 浮层(菜单、弹出层、对话框、提示、吐司、悬停卡) | 容器上 `0 0 0 0.5px border-default` + 阴影;内部不画线 |
| 焦点环 | 强调色,2px box-shadow |
-| 控件本身的形态(开关关闭态环、拖拽把手) | 允许;它们是控件本身而非分区 |
+| 控件本身的形态(开关关闭态环、拖拽把手) | 允许;它们是控件本身而非分区。左右栏分隔线都是 32px 居中短把手,不是通高细线;键盘焦点和拖动中用实色强调 |
## 7. 图像学
diff --git a/docs/zh-CN/spec/04-ux/08-component-spec.md b/docs/zh-CN/spec/04-ux/08-component-spec.md
index c46a70523..1726219a8 100644
--- a/docs/zh-CN/spec/04-ux/08-component-spec.md
+++ b/docs/zh-CN/spec/04-ux/08-component-spec.md
@@ -725,8 +725,8 @@ expanded/collapsed 侧边栏仍为 20px/18px 且启动画面为 64 像素。
存在的快捷键才显示快捷键标签。
- 标签在悬停、聚焦和活动时显示 `×`,中键也可关闭。面板溢出由标签条处理,
不再额外渲染资源列表。菜单以 ≤4px 位移淡入,并在 reduced motion 下静止。
-- 活动选项卡、文件树行、差异标题和调整大小手柄轻松悬停
- 填充 `--motion-duration-fast` / `--motion-ease-out`
+- 活动选项卡、文件树行、差异标题用 `--motion-duration-fast` /
+ `--motion-ease-out` 做悬停填充。调整大小把手与左侧边栏一致:32px 居中短线,悬停/聚焦才出现,键盘焦点和拖动中用实色强调
- 浏览器URL和空工具镀铬共享所使用的光嵌入场处理
通过设置控件 (D148)
- 面板里的每一个空状态 —— 无资源主体,以及每个标签自己的空状态 ——
diff --git a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
index 380ebcf99..58371e5e8 100644
--- a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
@@ -3143,7 +3143,7 @@ IPC 请求无法关闭。
- 工作面板主体读取为安静的 `#fafafa` 插页纸,带有白色标题带。
- 设置字段、浏览器 URL、分段轨道和快捷键键帽使用浅色嵌入填充;聚焦场通过中性环提升。
- 切换开启状态使白色旋钮保持在近乎黑色的轨道上。
- - 悬停可通过共享运动令牌轻松填充 file-tree/diff/resize。
+ - 悬停可通过共享运动令牌轻松填充 file-tree/diff/resize;分隔线与左侧边栏一致,是 32px 居中短把手,不是通高细线;键盘焦点和拖动中用实色强调。
- 浅色对话稀松布比深色 45% 面纱(约 28% 墨水)更柔软。
- dock 内的问题卡在两种主题里都绘制 composer 板 —— 浅色 `#ffffff` 配 composer
阴影,深色 96% `#212121` —— 它的选项行是无抬升阴影的内嵌 `--ds-tile-deep` 填充。