@functionalcms/svelte-components 5.20.0 → 5.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
footer:
|
|
57
57
|
'absolute start-0 bottom-0 z-20 w-full border-t border-gray-200 bg-white p-4 shadow-sm md:flex md:items-center md:justify-between md:p-6 dark:border-gray-600 dark:bg-gray-800',
|
|
58
58
|
footerLinks: '',
|
|
59
|
-
main: '
|
|
59
|
+
main: 'flex-1'
|
|
60
60
|
};
|
|
61
61
|
const mergedClasses = $derived(() => ({ ...defaultClasses, ...classes }));
|
|
62
62
|
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
<link rel="canonical" href="{canonicalUrl}{page.url.pathname}" />
|
|
76
76
|
</svelte:head>
|
|
77
77
|
|
|
78
|
-
<div class="w-full
|
|
78
|
+
<div class="relative flex min-h-screen w-full flex-col" id="defaultLayout">
|
|
79
79
|
<Navbar class={mergedClasses().navigation}>
|
|
80
80
|
<NavBrand href="/" class="logo">
|
|
81
81
|
<img src={logoUrl} class={mergedClasses().logo} alt={companyName} />
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
});
|
|
46
46
|
</script>
|
|
47
47
|
|
|
48
|
-
<main class="" bind:this={container}>
|
|
48
|
+
<main class="menu-layout relative flex h-full" bind:this={container}>
|
|
49
49
|
<SidebarButton onclick={helpers.toggle} class="mb-2" />
|
|
50
50
|
|
|
51
51
|
<Sidebar
|
|
@@ -107,9 +107,12 @@
|
|
|
107
107
|
</SidebarGroup>
|
|
108
108
|
</Sidebar>
|
|
109
109
|
<div
|
|
110
|
-
class="content h-full overflow-auto px-4 transition-all duration-300 {
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
class="content h-full overflow-auto px-4 transition-all duration-300 {sidebarPosition ===
|
|
111
|
+
'static'
|
|
112
|
+
? ''
|
|
113
|
+
: isCollapsed
|
|
114
|
+
? 'md:ml-16'
|
|
115
|
+
: 'md:ml-64'}"
|
|
113
116
|
style:flex="1"
|
|
114
117
|
>
|
|
115
118
|
{@render children?.()}
|