fix: (somehow) make absolute work again

This commit is contained in:
Xyphyn committed 2023-07-14 12:31:01 -07:00
1 parent d19a90658b
commit 2bc4d19ae0
8 files changed
+148 -106

No files matched your search

+18 -16
View File
@@ -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>