@sierra-95/svelte-scaffold 1.2.24 → 1.2.26
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.
|
@@ -45,7 +45,9 @@
|
|
|
45
45
|
{/if}
|
|
46
46
|
|
|
47
47
|
{#if url}
|
|
48
|
-
<
|
|
48
|
+
<div style="width: {iconSize};">
|
|
49
|
+
<img style="width: 100%;" src={url} alt="Logo"/>
|
|
50
|
+
</div>
|
|
49
51
|
{/if}
|
|
50
52
|
<h4 style="margin-left: {icon || url ? iconGap : '0'};">{@render children?.()}</h4>
|
|
51
53
|
</div>
|
|
@@ -5,9 +5,8 @@
|
|
|
5
5
|
const {
|
|
6
6
|
toggleMenu = (() => {}),
|
|
7
7
|
} = $props();
|
|
8
|
-
let openMenu = $state(false);
|
|
9
|
-
|
|
10
8
|
</script>
|
|
9
|
+
|
|
11
10
|
<header id='sierra-header'>
|
|
12
11
|
<div style="display: flex; align-items: center; gap: 1rem;">
|
|
13
12
|
|
|
@@ -22,11 +21,11 @@
|
|
|
22
21
|
<!--More header options-->
|
|
23
22
|
{#if $layoutStore.dropdown}
|
|
24
23
|
{#snippet TriggerMenu()}
|
|
25
|
-
<button aria-label="Ellipsis" onclick={() => (
|
|
26
|
-
<i class="fa-solid fa-chevron-down {
|
|
24
|
+
<button aria-label="Ellipsis" onclick={() => ($layoutStore.dropdownOpenMenu = !$layoutStore.dropdownOpenMenu)}>
|
|
25
|
+
<i class="fa-solid fa-chevron-down {$layoutStore.dropdownOpenMenu? 'active':''}"></i>
|
|
27
26
|
</button>
|
|
28
27
|
{/snippet}
|
|
29
|
-
<DropdownContainer zIndex={15} bind:open={
|
|
28
|
+
<DropdownContainer zIndex={15} bind:open={$layoutStore.dropdownOpenMenu} dropdownTrigger={TriggerMenu}>
|
|
30
29
|
{@render $layoutStore.dropdownContent?.()}
|
|
31
30
|
</DropdownContainer>
|
|
32
31
|
{/if}
|