fix: slot not shown when empty

This commit is contained in:
Arman committed 2022-07-19 09:50:33 +02:00
1 parent b5931df942
commit 576c2f6357
1 file changed
+2 -6
+2 -6
View File
@@ -1,9 +1,5 @@
<script>
import { Card } from './';
let actions = {
textContent: 'actions'
};
</script>
<Card>
@@ -15,8 +11,8 @@
<slot name="aside" />
</div>
</div>
{#if actions?.textContent}
<div class="common-section card-separator u-flex u-main-end" bind:this={actions}>
{#if $$slots.actions}
<div class="common-section card-separator u-flex u-main-end">
<slot name="actions" />
</div>
{/if}