feat(site-builder): tablet/mobile canvas emulates published hide, stacking and full-width

Frame gets data-device; RenderNode mirrors hide flags and selection onto the
dom; editor.css emulates the exported breakpoints inside the narrowed frame.
Also: data-wsb-overridden counts only set values, responsive scope ids are
zone-prefixed (h-/b-/f-) so ROOT no longer collides, and comment delimiters
are stripped from responsive declarations.

Refs #37
This commit is contained in:
shadowdao committed 2026-10-07 11:39:25 -07:00
1 parent ce3db23506
commit 22c59eb970
14 files changed
+269 -32

No files matched your search

+3
View File
@@ -89,6 +89,9 @@ export const GRADIENTS = [
{ label: 'None', value: 'none' },
];
/* Canvas frame widths per device. Each sits inside the published breakpoint
range (utils/breakpoints.ts): mobile <=767, tablet 768-991, desktop >=992,
so the editor's emulation (#37) and the exported media queries agree. */
export const DEVICE_WIDTHS: Record<string, string> = {
desktop: '100%',
tablet: '768px',