@functionalcms/svelte-components 5.21.0 → 5.22.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.
@@ -57,9 +57,6 @@
57
57
  >
58
58
  <SidebarGroup>
59
59
  <div class="mb-4 flex items-center justify-between px-2">
60
- {#if logo && !isCollapsed}
61
- <SidebarBrand site={logo} classes={{ img: 'h-6 w-6' }} />
62
- {/if}
63
60
  <button
64
61
  onclick={() => (isCollapsed = !isCollapsed)}
65
62
  class="rounded-lg p-2 hover:bg-gray-100 dark:hover:bg-gray-700"
@@ -67,6 +64,9 @@
67
64
  >
68
65
  <Icon {icon} />
69
66
  </button>
67
+ {#if logo && !isCollapsed}
68
+ <SidebarBrand site={logo} classes={{ img: 'h-6 w-6' }} />
69
+ {/if}
70
70
  </div>
71
71
  {#each menuItems as item}
72
72
  {#if !isCollapsed}
@@ -82,16 +82,15 @@
82
82
  .collapse-toggle {
83
83
  position: absolute;
84
84
  left: 0;
85
- top: 50%;
86
- transform: translateY(-50%);
85
+ top: 0;
87
86
  z-index: 10;
88
87
  background-color: #fff;
89
88
  border: 1px solid #ddd;
90
- border-radius: 0 4px 4px 0;
89
+ border-radius: 0 0 4px 0;
91
90
  padding: 0.5rem 0.25rem;
92
91
  cursor: pointer;
93
92
  transition: all 0.3s ease;
94
- box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
93
+ box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
95
94
  }
96
95
 
97
96
  .collapse-toggle.collapsed {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalcms/svelte-components",
3
- "version": "5.21.0",
3
+ "version": "5.22.0",
4
4
  "license": "MIT",
5
5
  "watch": {
6
6
  "build": {