SidebarTry:
1) Drag splitters
2) Double-click a splitter to collapse
3) Reload page to see persistenceEditorControls:
- Drag splitters to resize
- Double-click a splitter to collapse the smaller side
- Use header buttons to restore collapsed panels
Notes:
- Sidebar, Console, Inspector are fixed (pixel basis)
- Editor is fluid (fills remaining space)
- Sizes + collapsed state persist via localStorageLayout ruleEach branch needs at least one fluid panel.
Otherwise you get a gap on window resize.PersistenceStored in localStorage by id:
panel-layout:main
panel-layout:workspaceCollapsed stateImplemented via [collapsed] attribute.
CSS collapses to 0 and disables pointer events.Smooth draggingPointer Events + setPointerCapture()
requestAnimationFrame() throttled writesTip: Use meaningful IDs for persistence.Console[11:39:00] panel-layout initialized
[11:39:04] drag end → panel-layout-changedClipboardClipboard history:
1. Copy "Hello World"
2. Copy function snippet
3. Cut CSS blockInspectorUse this area for:
- Properties
- Logs
- Feature inspect
- Details panels