mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-16 21:50:35 +02:00
add list filter collections
This commit is contained in:
@@ -3,6 +3,7 @@ import { lazy, Suspense, useMemo } from 'react';
|
||||
import { useListContext } from '/@/renderer/context/list-context';
|
||||
import { ListFilters, ListFiltersTitle } from '/@/renderer/features/shared/components/list-filters';
|
||||
import { ListWithSidebarContainer } from '/@/renderer/features/shared/components/list-with-sidebar-container';
|
||||
import { SaveAsCollectionButton } from '/@/renderer/features/shared/components/save-as-collection-button';
|
||||
import { useSongListFilters } from '/@/renderer/features/songs/hooks/use-song-list-filters';
|
||||
import { ItemListSettings, useCurrentServer, useListSettings } from '/@/renderer/store';
|
||||
import { ScrollArea } from '/@/shared/components/scroll-area/scroll-area';
|
||||
@@ -44,11 +45,14 @@ export const SongListContent = () => {
|
||||
const SongListFilters = () => {
|
||||
return (
|
||||
<ListWithSidebarContainer.SidebarPortal>
|
||||
<Stack h="100%">
|
||||
<Stack h="100%" style={{ minHeight: 0 }}>
|
||||
<ListFiltersTitle itemType={LibraryItem.SONG} />
|
||||
<ScrollArea>
|
||||
<ScrollArea style={{ flex: 1, minHeight: 0 }}>
|
||||
<ListFilters itemType={LibraryItem.SONG} />
|
||||
</ScrollArea>
|
||||
<Stack p="sm">
|
||||
<SaveAsCollectionButton fullWidth itemType={LibraryItem.SONG} />
|
||||
</Stack>
|
||||
</Stack>
|
||||
</ListWithSidebarContainer.SidebarPortal>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user