fix: remove duplicate separator in the shelves dropdown
This commit is contained in:
@@ -35,6 +35,9 @@
|
|||||||
<span class="ml-1 truncate font-semibold">
|
<span class="ml-1 truncate font-semibold">
|
||||||
{libraryState.activeLibrary!.name}
|
{libraryState.activeLibrary!.name}
|
||||||
</span>
|
</span>
|
||||||
|
<span class="ml-1 truncate font-mono text-xs tabular-nums text-muted-foreground">
|
||||||
|
{libraryState.activeLibrary!.total ?? 0} books
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<ChevronsUpDownIcon class="mr-2 ml-auto" />
|
<ChevronsUpDownIcon class="mr-2 ml-auto" />
|
||||||
</Sidebar.MenuButton>
|
</Sidebar.MenuButton>
|
||||||
|
|||||||
@@ -59,8 +59,7 @@
|
|||||||
<DropdownMenu.Content>
|
<DropdownMenu.Content>
|
||||||
<DropdownMenu.Group>
|
<DropdownMenu.Group>
|
||||||
<DropdownMenu.GroupHeading>Shelves</DropdownMenu.GroupHeading>
|
<DropdownMenu.GroupHeading>Shelves</DropdownMenu.GroupHeading>
|
||||||
<DropdownMenu.Separator />
|
{#each bookshelfState.getBookshelves(libraryState.activeLibrary!.id) ?? [] as shelf (shelf.id)}
|
||||||
{#each bookshelfState.getBookshelves(libraryState.activeLibrary!.id) as shelf}
|
|
||||||
<DropdownMenu.CheckboxItem
|
<DropdownMenu.CheckboxItem
|
||||||
checked={selectedBooks.every(
|
checked={selectedBooks.every(
|
||||||
(book) => book.lists.findIndex((sh) => sh.id === shelf.id) !== -1
|
(book) => book.lists.findIndex((sh) => sh.id === shelf.id) !== -1
|
||||||
|
|||||||
Reference in New Issue
Block a user