mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: slot not shown when empty
This commit is contained in:
1 parent
b5931df942
commit
576c2f6357
1 file changed
+2
-6
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user