Skip to content

Commit

Permalink
add rotate
Browse files Browse the repository at this point in the history
  • Loading branch information
Inglan committed Jan 3, 2025
1 parent 4aa88a7 commit 224968f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib/components/app-sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
<Sidebar.Menu>
{#each mainNavigation as groupItem (groupItem.title)}
{#if groupItem.items?.length}
<Collapsible.Root>
<Collapsible.Root class="group/collapsible">
<Sidebar.MenuItem>
<Collapsible.Trigger>
{#snippet child({ props })}
Expand All @@ -154,7 +154,9 @@
{#snippet child({ props })}
<a class=" font-medium" {...props}>
{groupItem.title}
<ChevronsUpDown class="ml-auto" />
<ChevronsUpDown
class="ml-auto group-data-[state=open]/collapsible:rotate-90"
/>
</a>
{/snippet}
</Sidebar.MenuButton>
Expand Down

0 comments on commit 224968f

Please sign in to comment.