Keep the overlay canvas full width while the box editor is open
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:
@@ -293,7 +293,7 @@ function toggleEdit() {
|
|||||||
<div
|
<div
|
||||||
class="box-canvas"
|
class="box-canvas"
|
||||||
:class="{
|
:class="{
|
||||||
'with-editor': inEditMode && selected,
|
'with-editor': inEditMode && selected && !overlay,
|
||||||
overlay: overlay && !isMobile,
|
overlay: overlay && !isMobile,
|
||||||
'overlay-editing': overlay && inEditMode,
|
'overlay-editing': overlay && inEditMode,
|
||||||
}"
|
}"
|
||||||
@@ -404,7 +404,9 @@ function toggleEdit() {
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
/* Leave room for the fixed editor panel so the canvas rescales beside it
|
/* 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 {
|
.box-canvas.with-editor {
|
||||||
padding-right: calc(min(460px, 100vw) + 16px);
|
padding-right: calc(min(460px, 100vw) + 16px);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user