Skip to content

Commit

Permalink
style: improve tree items display
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene committed Apr 9, 2024
1 parent 998b4a3 commit 931b936
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions frontend/src/lib/components/TreeView/TreeViewItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -389,17 +389,16 @@
<input class="radio tree-item-radio" type="radio" bind:group {name} {value} />
{/if}
{/if}

<!-- Slot: Content -->
<div class="tree-item-content w-full">
<slot />
</div>
<!-- Slot: Lead -->
{#if $$slots.lead && !hideLead}
<div class="tree-item-lead">
<slot name="lead" />
</div>
{/if}
<!-- Slot: Content -->
<div class="tree-item-content w-full">
<slot />
</div>
</summary>
<div bind:this={childrenDiv} class="tree-item-children {classesChildren}" role="group">
<slot name="children" />
Expand Down

0 comments on commit 931b936

Please sign in to comment.