cdcc3969bc6c923385ada9ddc5511571a71ff30f
toHtml emitted only the wrapper's flex/gap style and passed childrenHtml through untouched, so a non-default split percentage never showed up in the export -- each column's width silently reverted to whatever was baked into its own inline style at node-creation time. toHtml has no direct handle on individual children to rewrite their styles (it only receives the already-concatenated childrenHtml string), so emit a scoped <style> block with nth-child rules (!important, to win over any stale per-child inline flex) computed via the same getWidths(split, columns) mapping the editor render uses. Precedent: Menu/Navbar toHtml already emit scoped <style> blocks for hover CSS. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Description
Visual drag-and-drop website builder using GrapesJS
Languages
TypeScript
61.2%
HTML
17.1%
JavaScript
17%
CSS
3.6%
PHP
0.8%
Other
0.3%