Repository navigation
fix(chrome): keep conversation actions clear of the work-panel toggle - #2424
Conversation
The conversation titlebar dropped its trailing reserve before the dock was wide enough to take over that space, leaving the fixed toggle over Search. Base the titlebar bounds on the rendered pane and the shared toggle inset so the minimum gap holds through both dock animations. fixes vastsa#2421
There was a problem hiding this comment.
AIUO CodePilot · Preliminary review
Diff-only preliminary review: the change moves `.conversation-topbar` from absolute pane-bound positioning to fixed positioning constrained by CSS anchor positioning (`anchor(--main-pane left/right)`) and a `max()` clamp tied to the work-panel toggle. Tests and docs were updated to remove the previous `ct-work-panel-open` / 120px band contract. No evidenced defects were confirmed from the added lines alone; verification is limited to the provided diff text (no repository, runtime, browser, or test execution).
No evidenced findings in the supplied diff.
Head: 159379d
Base: 0ca8112
CI: unavailable; mergeable: true.
Validation: code/tests NOT EXECUTED. Diff-only preliminary analysis; not approval. Human review and repository gates remain required.
Keep the Settings dialog changes and drive the window-controls regression through the new modal. Suppress startup overlays in the disposable test profile so the dock click exercises the actual titlebar.
Restore the isolated window before awaiting browser frames and let the emulated viewport settle before clicking. Bound teardown so a native quit prompt cannot hold the probe open.
Summary / 概要
在主分支
0ca811242628的 Electron 构建上,用 807×567 的视口和 Windows 渲染器样式复现了工作面板开关遮挡搜索按钮。面板开合时,旧实现按开关状态立即撤掉顶栏预留,而面板宽度仍在动画中。按报告中的坐标复现时,搜索按钮与开关的命中区域相交约 23px。会话顶栏现在跟随会话区的实际边界,并根据固定开关的尺寸和右侧偏移限制顶栏右边缘。开合期间「新建任务 / 搜索」按钮组与开关保持至少 8px 间距。同步更新了 UI 规范和窗口控件 E2E 场景。
Requirement link / 需求关联
Validation / 验证
159379dcc1ba上通过。用pnpm test:e2e:window-controls对打开和关闭动画各采样 21 帧,并验证每帧的按钮边缘命中和最小间距。Before and after / 对比
下图使用同一 Electron 测试视口,并将面板宽度固定在报告对应的 123px。