Skip to content

Commit

Permalink
fix: annotation box wonky layout if no actions
Browse files Browse the repository at this point in the history
  • Loading branch information
efstajas committed Oct 2, 2023
1 parent c7724eb commit 2a8a2f5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/lib/components/annotation-box/annotation-box.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@
<slot />
</div>
</div>
<div class="flex-1 flex justify-end">
<slot name="actions" />
</div>
{#if $$slots.actions}
<div class="flex-1 flex justify-end">
<slot name="actions" />
</div>
{/if}
</div>

<style>
Expand Down

0 comments on commit 2a8a2f5

Please sign in to comment.