diff --git a/packages/client/src/components/app/Layout.svelte b/packages/client/src/components/app/Layout.svelte index 089ce8e7de..3d9668ea97 100644 --- a/packages/client/src/components/app/Layout.svelte +++ b/packages/client/src/components/app/Layout.svelte @@ -72,6 +72,12 @@ $context.device.height ) $: autoCloseSidePanel = !$builderStore.inBuilder && $sidePanelStore.open + $: screenId = $builderStore.inBuilder + ? `${$builderStore.screen?._id}-screen` + : "screen" + $: navigationId = $builderStore.inBuilder + ? `${$builderStore.screen?._id}-navigation` + : "navigation" // Scroll navigation into view if selected. // Memoize into a primitive to avoid spamming this whenever builder store @@ -145,27 +151,29 @@ } return style } + + $: console.log($builderStore.selectedComponentId)