The stage keeps its 14px inset: a late editor's mount moved the slide's pixels at 12 and 16
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+9
−4
internal/slides/static/editor.css+9 −4
Intent
diff --git a/internal/slides/static/editor.css b/internal/slides/static/editor.css| index 655e63c..ef2f314 100644 |
| --- a/internal/slides/static/editor.css |
| +++ b/internal/slides/static/editor.css |
| @@ -801,10 +801,15 @@ |
| once so the notes card can be the slide's width (the desk's rules, |
| below): the gap between the pane's rows, the stage bar's row in |
| Desktop view (estilo's segmented control, 28px), and the stage's |
| - own padding round the slide. */ |
| + own padding round the slide. That padding is the stage's |
| + geometry, not the page's spacing: the selection's handles sit in |
| + it, the presses control under the slide is placed from it |
| + (play-through.mjs), and moved to 12px or 16px it changes the |
| + slide's pixels when a late editor mounts |
| + (TestFontALateEditorMovesNothing). Its two uses say so. */ |
| --slides-stage-pane-gap: var(--rst-sp-3); |
| --slides-stage-bar-block-size: 28px; |
| - --slides-stage-inset: var(--rst-sp-3); |
| + --slides-stage-inset: 14px; |
| display: grid; |
| gap: var(--slides-stage-pane-gap); |
| grid-area: stage; |
| @@ -865,7 +870,7 @@ |
| /* In Desktop view the slide is as wide as the stage less its padding |
| (narrower than the desk, below 1100px); the card is inset the same. */ |
| [slides-stage-pane][data-view="desktop"] > [slides-notes-pane] { |
| - margin-inline: var(--slides-stage-inset); |
| + margin-inline: var(--slides-stage-inset); /* spacing-allow: the stage's own inset, so the card lines up with the slide's edges */ |
| } |
| [slides-notes-pane]:is([hidden], [data-state="closed"]) { |
| display: none; |
| @@ -1747,7 +1752,7 @@ summary[slides-card-row]::-webkit-details-marker { |
| /* Room around the slide for the selection outline and the resize |
| handles, which sit half outside the block's edge. */ |
| [slides-stage] { |
| - padding: var(--slides-stage-inset); |
| + padding: var(--slides-stage-inset); /* spacing-allow: the stage's room round the slide, for the selection's handles and the presses control (canvas geometry) */ |
| position: relative; |
| } |
| [slides-stage-pane][data-view="both"] [slides-stages] { |