Skip to content

[bugfix] canvas: align desktop prompt panel with selected media - #527

Open
wangtiance wants to merge 2 commits into
mainfrom
codex/fix-desktop-composer-overlap
Open

wangtiance wants to merge 2 commits into
mainfrom
codex/fix-desktop-composer-overlap

Conversation

@wangtiance

Copy link
Copy Markdown
Collaborator

The Windows title bar moves the React Flow canvas down, but the prompt panel used the resulting node coordinates as if they were relative to the workspace. The panel could overlap the bottom of an image or video node.

Measure the canvas origin relative to the workspace and apply it consistently to selection controls, viewport fitting, and media overlays. The browser regression checks the actual 16 CSS pixel gap in the web and Windows layouts, including after opening the desktop sidebar and resizing. It also checks that node positions are unchanged.

Validation: 998 frontend tests, TypeScript, i18n and browser manifest checks, and the browser regression in Chrome on Windows. The browser test enables the Windows desktop renderer styles and uses empty image/video nodes. Packaged Electron playback with real media remains to be checked.

Fixes #526.

@github-actions github-actions Bot added area:canvas Canvas, nodes and direct manipulation area:desktop Desktop integration / 桌面集成 type:bug Something is broken labels Nov 26, 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 area:desktop Desktop integration / 桌面集成 type:bug Something is broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] Windows 桌面端画布:生成提示词面板遮挡图片或视频预览

1 participant