fix: (somehow) make absolute work again
This commit is contained in:
1 parent
d19a90658b
commit
2bc4d19ae0
8 files changed
+148
-106
No files matched your search
@@ -9,19 +9,21 @@
|
||||
const click = createEventDispatcher()
|
||||
</script>
|
||||
|
||||
{#if link}
|
||||
<a
|
||||
{href}
|
||||
class="flex flex-row gap-2 items-center px-4 py-2 w-full text-sm transition-colors {color}"
|
||||
>
|
||||
<slot />
|
||||
</a>
|
||||
{:else}
|
||||
<button
|
||||
on:click={(e) => click('click', e)}
|
||||
type="button"
|
||||
class="flex flex-row gap-2 items-center px-4 py-2 w-full text-sm transition-colors {color}"
|
||||
>
|
||||
<slot />
|
||||
</button>
|
||||
{/if}
|
||||
<li>
|
||||
{#if link}
|
||||
<a
|
||||
{href}
|
||||
class="flex flex-row gap-2 items-center px-4 py-2 w-full text-sm transition-colors {color}"
|
||||
>
|
||||
<slot />
|
||||
</a>
|
||||
{:else}
|
||||
<button
|
||||
on:click={(e) => click('click', e)}
|
||||
type="button"
|
||||
class="flex flex-row gap-2 items-center px-4 py-2 w-full text-sm transition-colors {color}"
|
||||
>
|
||||
<slot />
|
||||
</button>
|
||||
{/if}
|
||||
</li>
|
||||
Reference in new issue
Block a user