fix: remove duplicate separator in the shelves dropdown

This commit is contained in:
2026-08-11 20:08:53 -04:00
parent 6366582498
commit 4ee127b6cb
2 changed files with 4 additions and 2 deletions
@@ -35,6 +35,9 @@
<span class="ml-1 truncate font-semibold">
{libraryState.activeLibrary!.name}
</span>
<span class="ml-1 truncate font-mono text-xs tabular-nums text-muted-foreground">
{libraryState.activeLibrary!.total ?? 0} books
</span>
</div>
<ChevronsUpDownIcon class="mr-2 ml-auto" />
</Sidebar.MenuButton>
@@ -59,8 +59,7 @@
<DropdownMenu.Content>
<DropdownMenu.Group>
<DropdownMenu.GroupHeading>Shelves</DropdownMenu.GroupHeading>
<DropdownMenu.Separator />
{#each bookshelfState.getBookshelves(libraryState.activeLibrary!.id) as shelf}
{#each bookshelfState.getBookshelves(libraryState.activeLibrary!.id) ?? [] as shelf (shelf.id)}
<DropdownMenu.CheckboxItem
checked={selectedBooks.every(
(book) => book.lists.findIndex((sh) => sh.id === shelf.id) !== -1