Skip to content

fix(chrome): keep conversation actions clear of the work-panel toggle - #2424

Merged
vastsa merged 4 commits into
vastsa:mainfrom
Linuxdazhao:codex/topbar-work-panel-overlap-2421
Nov 20, 2026
Merged

vastsa merged 4 commits into
vastsa:mainfrom
Linuxdazhao:codex/topbar-work-panel-overlap-2421

Conversation

@Linuxdazhao

@Linuxdazhao Linuxdazhao commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary / 概要

在主分支 0ca811242628 的 Electron 构建上,用 807×567 的视口和 Windows 渲染器样式复现了工作面板开关遮挡搜索按钮。面板开合时,旧实现按开关状态立即撤掉顶栏预留,而面板宽度仍在动画中。按报告中的坐标复现时,搜索按钮与开关的命中区域相交约 23px。

会话顶栏现在跟随会话区的实际边界,并根据固定开关的尺寸和右侧偏移限制顶栏右边缘。开合期间「新建任务 / 搜索」按钮组与开关保持至少 8px 间距。同步更新了 UI 规范和窗口控件 E2E 场景。

Requirement link / 需求关联

Validation / 验证

  • 新增的回归检查在原版上失败、在 159379dcc1ba 上通过。用 pnpm test:e2e:window-controls 对打开和关闭动画各采样 21 帧,并验证每帧的按钮边缘命中和最小间距。
  • 同一套 E2E 的 macOS 原生窗口控件流程、79 项定向测试、桌面类型检查和样式检查均通过。
  • 环境为 macOS arm64、Electron 43.6.0 和本地兼容 Host。Windows 部分使用渲染器样式模拟。Windows 原生最小化和还原尚未验证。

Before and after / 对比

下图使用同一 Electron 测试视口,并将面板宽度固定在报告对应的 123px。

修复前,开关与搜索图标重叠 修复后,开关与操作组间距 8px

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

@aiuo-codepilot aiuo-codepilot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@vastsa
vastsa merged commit baf46d3 into vastsa:main Nov 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] 顶栏右上角:固定定位的工作面板开关叠在「搜索」按钮上(图标重叠 + 搜索按钮右侧命中区被抢)

2 participants