fix: ssr crashes

This commit is contained in:
James Xylight committed 2025-02-13 16:12:33 -08:00
1 parent bf417a97c4
commit c37d1789d6
3 files changed
+11 -10

No files matched your search

+5 -5
View File
@@ -82,6 +82,11 @@
top: boolean
}>(dockProps)
let sidePadding = $derived(
calculatePadding(dockProps.noGap, dockProps.top, false),
)
let topPanel = $derived(dockProps.noGap && dockProps.top)
export { contentPaddingStore as contentPadding, dockPropsStore as dockProps }
</script>
@@ -113,11 +118,6 @@
...rest
}: Props = $props()
let sidePadding = $derived(
calculatePadding(dockProps.noGap, dockProps.top, false),
)
let topPanel = $derived(dockProps.noGap && dockProps.top)
$effect(() => {
contentPaddingStore.set(contentPadding)
dockPropsStore.set(dockProps)