@functionalcms/svelte-components 5.1.3 → 5.1.4

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.
@@ -25,8 +25,13 @@
25
25
  sidebarPosition?: 'fixed' | 'absolute' | 'static';
26
26
  }
27
27
 
28
- let { children, menuItems = [], logo = undefined, sidebarPosition = 'fixed' }: Partial<TwoColumnLayoutProps> = $props();
29
-
28
+ let {
29
+ children,
30
+ menuItems = [],
31
+ logo = undefined,
32
+ sidebarPosition = 'fixed'
33
+ }: Partial<TwoColumnLayoutProps> = $props();
34
+
30
35
  let container: HTMLElement | undefined = undefined;
31
36
  const helpers = uiHelpers();
32
37
  afterNavigate(() => {
@@ -36,9 +41,7 @@
36
41
 
37
42
  <main class="" bind:this={container}>
38
43
  <SidebarButton onclick={helpers.toggle} class="mb-2" />
39
- {#if logo}
40
- <SidebarBrand site={logo} classes={{ img: 'h-6 w-6' }} />
41
- {/if}
44
+
42
45
  <Sidebar
43
46
  backdrop={false}
44
47
  isOpen={helpers.isOpen}
@@ -47,6 +50,9 @@
47
50
  class="z-50 h-full"
48
51
  >
49
52
  <SidebarGroup>
53
+ {#if logo}
54
+ <SidebarBrand site={logo} classes={{ img: 'h-6 w-6' }} />
55
+ {/if}
50
56
  {#each menuItems as item}
51
57
  {#if 'items' in item}
52
58
  <SidebarDropdownWrapper label={item.label}>
@@ -64,7 +70,7 @@
64
70
  {/each}
65
71
  </SidebarGroup>
66
72
  </Sidebar>
67
- <div class="content" style:flex="1">
73
+ <div class="content h-full overflow-auto px-4 md:ml-64" style:flex="1">
68
74
  {@render children?.()}
69
75
  </div>
70
76
  </main>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "5.1.3",
3
+ "version": "5.1.4",
4
4
  "license": "MIT",
5
5
  "watch": {
6
6
  "build": {