Let the box editor panel be resized and its code scaled
Test and deploy / deploy (push) Successful in 32s
Test and deploy / test (push) Successful in 1m15s

Drag the panel's left edge (double-click to reset, arrow keys when
focused) to change its width; the canvas pads itself by the same width.
A−/A+ in the header, or Ctrl/Cmd +/-/0 in the editor, change the code's
text size. Both are remembered per browser in localStorage.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-23 20:52:17 +01:00
co-authored by Claude Opus 5.5
parent 2eacbc2e33
commit e181aa09bd
5 changed files with 201 additions and 13 deletions
+4 -1
View File
@@ -291,7 +291,10 @@ renders any page's boxes.
automatically on leaving the box (selecting another, clicking empty canvas,
Done, ✕).
CodeMirror is loaded only when that panel opens; the panel is teleported to
`<body>`.
`<body>`. Its width (drag the left edge, double-click to reset) and the
code's text size (A−/A+, or Ctrl/Cmd +/−/0 in the editor) are kept per
browser in localStorage by `editorPrefs.js`; the canvas pads itself by the
same width so it rescales beside the panel.
Image and video files dropped onto the canvas in edit mode are uploaded and
each becomes an unframed box at the drop point. "Insert upload" stores a
file through `@/uploads` (see "Uploading files") and puts an `<img>`/`<video>`