sync editor state with URL for browser back support
Some checks failed
deploy / deploy (push) Has been cancelled

- add ?edit=page/theme/settings param when opening editor or switching tabs
- remove ?edit param when closing editor
- restore .themed class on shop_root for editor panel background tokens
- collapse editor when navigating back to URL without ?edit param

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
jamey
2026-03-09 21:59:48 +00:00
parent 2c3c5050f4
commit 94c6137ab1
2 changed files with 34 additions and 4 deletions

View File

@@ -80,8 +80,9 @@
This shop works without JavaScript, but some features work better with it enabled.
</div>
</noscript>
<%!-- Data attributes live on .shop-container inside LiveView for live updates --%>
<div class="shop-root">
<%!-- .themed here provides fallback theme tokens; .shop-container.themed inside
LiveView has data attributes for live updates --%>
<div class="shop-root themed">
{@inner_content}
</div>
</body>