feat(pages): canvas frame spike passes; Custom HTML frames listen on their own window

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
This commit is contained in:
ngqileandClaude Opus 5.5 committed 2026-12-03 14:36:17 +08:00
1 parent 55d9535ef2
commit 5f4f3bc1ee
5 files changed
+74 -8

No files matched your search

@@ -44,7 +44,7 @@ The editor mounts `<iframe>` with no `src` (about:blank, same origin), then rend
### 2. Desktop is 1280 px, scaled
- **Desktop** renders the frame 1280 px wide and scales it with a CSS transform to the width left beside the panel. The canvas height follows the frame's content.
- **Desktop** renders the frame 1280 px wide and scales it with a CSS transform to the width left beside the panel. The frame is one screen tall and scrolls inside, like a device (the spike found that growing it to its content loops, since a landing page is at least one screen tall: `min-h-svh`).
- **Phone** is 390 px at 1:1.
- Outlines, toolbars and "Add section" buttons are drawn inside the frame document, so they scale with the page.