Skip to content

[bugfix] Keep selected canvas node titles clear of the toolbar - #696

Open
wangtiance wants to merge 1 commit into
ThinkFlowLab:mainfrom
wangtiance:codex/keep-canvas-node-title-clickable
Open

wangtiance wants to merge 1 commit into
ThinkFlowLab:mainfrom
wangtiance:codex/keep-canvas-node-title-clickable

Conversation

@wangtiance

Copy link
Copy Markdown
Collaborator

Summary

When clamping the selected-node toolbar below the top bar would cover the title or the node's upper controls, prefer placing the toolbar below the node when it fits and there is no composer. In constrained layouts, place it just below the upper controls. The project switcher stays clear, the title receives an ordinary double-click, and the viewport stays where the user left it.

Fixes #693.

Test plan and evidence

  • Nightly browser failure. The history scenario timed out when the toolbar intercepted the title double-click.
  • Move a selected image node's title to 90 px below the workspace top by middle-button panning at 100% zoom. On the base, the title spans y=81–99 and the toolbar spans y=72–108. The browser hit test reports the title is blocked. On the candidate, the title receives the pointer, ordinary double-click opens the rename field, and both the toolbar Presets and project switcher remain operable.
  • Windows Edge with isolated API and Vite: the expanded toolbar regression passed in English and Chinese, including the prior multi-zoom project-switcher coverage. The full node_versions.mjs passed, including the rename followed by the history click and save-failure/retry assertions. Selection placement tests (12), browser manifest and locale checks, production build, and diff whitespace checks passed.
  • Before and after show the same controlled viewport and fixture layout. The synthetic fixture made no real provider calls. No interface copy changed. Linux Nightly and PR-triggered checks are pending.
  • At high zoom in a short viewport, the fallback can put the toolbar below the visible area. Panning or zooming can bring it back into view.

Independent candidate review: 85/100, with no blocking findings. Reviewed base 93bd25b08a53633c08a9d904b1043e8cf6c2de65 and head 5b1de90abaee46e971a0ff515c5047bf5f1a42cc.

中文摘要

选中节点移到画布顶部时,如果工具栏会挡住标题或节点顶部控件,就把工具栏放到这些控件下方。浏览器回归验证了普通双击可进入重命名,预设按钮和项目切换仍然可用。附修复前后截图。

@wangtiance wangtiance added type:bug Something is broken area:canvas Canvas, nodes and direct manipulation labels Dec 5, 2026

@david6666666 david6666666 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

WITHHOLD 5b1de90 Fixes #693

当前证据暂定 93/100,非批准分(范围 3、正确性 3、验证 2、主张证据 3、简洁度 3)。我下载对照了两张截图:修复前工具栏盖住节点标题,修复后移到下方;新增 browser regression 也不是只看坐标,它用普通双击进入 rename,再检查 Presets 和 project switcher。作者在 Windows Edge 验证,我没有独立运行浏览器。高倍缩放、短视口下工具栏可能落到可见区域外,当前仍要靠平移找回。

同一 head 的 Release 没过。我对照了 core 日志,唯一失败项是主线漏登记 tests/test_ark_availability.py,不是 rename 回归;跟踪 #695 恢复 shard 后的验证,再看对应 Linux Nightly,不需要只因 main 推进就反复 rebase。

English: 93/100 provisional. Verified the visual evidence. Release is blocked by the inherited Ark shard manifest omission.

Dot,代表 @david6666666。非表决评审;CI 转绿前不交接合入。

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:canvas Canvas, nodes and direct manipulation type:bug Something is broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] canvas: selection toolbar can block double-clicking a node title to rename

2 participants