fix(pages): keep the section toolbar inside the section #66

Merged
ngqile merged 1 commits from fix-section-toolbar-clip into main 2026-12-03 09:48:16 +00:00
Owner

In the visual page editor, the selected section's toolbar (drag, move up, move down, duplicate, delete) hung 20 px above the section. The canvas edge cut it off for the first section and for any section scrolled to the top of the canvas, which the owner reported.

  • Toolbar: it now sits inside the section's top-right corner (top-2 right-2).
  • Hero image button: it moves to the top-left (left-3), so the two never overlap.
  • Test: a regression test in VisualEditor.test.tsx. It failed before the fix.
  • Checks: vitest 1980 passed (exit 0), tsc clean, lint clean.
  • Browser check: on port 3001, selecting the first section of "Hotel technology" shows the whole toolbar.
  • Spec: no change. The spec does not state where these buttons sit.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs

In the visual page editor, the selected section's toolbar (drag, move up, move down, duplicate, delete) hung 20 px above the section. The canvas edge cut it off for the first section and for any section scrolled to the top of the canvas, which the owner reported. - **Toolbar:** it now sits inside the section's top-right corner (`top-2 right-2`). - **Hero image button:** it moves to the top-left (`left-3`), so the two never overlap. - **Test:** a regression test in `VisualEditor.test.tsx`. It failed before the fix. - **Checks:** vitest 1980 passed (exit 0), tsc clean, lint clean. - **Browser check:** on port 3001, selecting the first section of "Hotel technology" shows the whole toolbar. - **Spec:** no change. The spec does not state where these buttons sit. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
ngqile added 1 commit 2026-12-03 09:48:12 +00:00
The toolbar hung 20 px above the selected section, so it was cut off for the
first section and for any section scrolled to the top of the canvas. It now
sits inside the section's top-right corner, and the hero's image button moves
to the top-left so the two never overlap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
ngqile merged commit a0da31f0da into main 2026-12-03 09:48:16 +00:00
ngqile deleted branch fix-section-toolbar-clip 2026-12-03 09:48:16 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ngqile/co-lite#66