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

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

1 participant