Keep the overlay canvas full width while the box editor is open
Test and deploy / test (push) Successful in 1m33s
Test and deploy / deploy (push) Successful in 29s

The editor's padding rescaled the landing page's overlay, pulling its
notes off the content they are pinned over. The fixed panel now just
covers the overlay instead; other canvases still shrink beside it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-14 23:55:13 +01:00
co-authored by Claude Opus 5.5
parent 30918eefaa
commit a8c55148af
+4 -2
View File
@@ -293,7 +293,7 @@ function toggleEdit() {
<div
class="box-canvas"
:class="{
'with-editor': inEditMode && selected,
'with-editor': inEditMode && selected && !overlay,
overlay: overlay && !isMobile,
'overlay-editing': overlay && inEditMode,
}"
@@ -404,7 +404,9 @@ function toggleEdit() {
box-sizing: border-box;
}
/* Leave room for the fixed editor panel so the canvas rescales beside it
instead of disappearing under it. */
instead of disappearing under it. Not for an overlay: rescaling it would
pull its boxes off the content they are pinned over, so the panel just
covers the right of the page instead. */
.box-canvas.with-editor {
padding-right: calc(min(460px, 100vw) + 16px);
}