hide grid from certain list configs

This commit is contained in:
jeffvli
2025-11-29 20:16:41 -08:00
parent 7744f58c8c
commit f5ab1d8e8a
2 changed files with 14 additions and 2 deletions
@@ -11,7 +11,7 @@ import { usePlayerSong, usePlayerStoreBase } from '/@/renderer/store';
import { ActionIcon } from '/@/shared/components/action-icon/action-icon';
import { Group } from '/@/shared/components/group/group';
import { QueueSong } from '/@/shared/types/domain-types';
import { ItemListKey } from '/@/shared/types/types';
import { ItemListKey, ListDisplayType } from '/@/shared/types/types';
interface PlayQueueListOptionsProps {
handleSearch: (value: string) => void;
@@ -138,6 +138,12 @@ export const PlayQueueListControls = ({
value={searchTerm}
/>
<ListConfigMenu
displayTypes={[
{
hidden: true,
value: ListDisplayType.GRID,
},
]}
listKey={ItemListKey.SIDE_QUEUE}
tableColumnsData={SONG_TABLE_COLUMNS}
/>
@@ -14,7 +14,7 @@ import { Divider } from '/@/shared/components/divider/divider';
import { Flex } from '/@/shared/components/flex/flex';
import { Group } from '/@/shared/components/group/group';
import { LibraryItem, SongListSort, SortOrder } from '/@/shared/types/domain-types';
import { ItemListKey } from '/@/shared/types/types';
import { ItemListKey, ListDisplayType } from '/@/shared/types/types';
export const PlaylistDetailSongListHeaderFilters = () => {
const { playlistId } = useParams() as { playlistId: string };
@@ -52,6 +52,12 @@ export const PlaylistDetailSongListHeaderFilters = () => {
</Group>
<Group gap="sm" wrap="nowrap">
<ListConfigMenu
displayTypes={[
{
hidden: true,
value: ListDisplayType.GRID,
},
]}
listKey={ItemListKey.PLAYLIST_SONG}
tableColumnsData={PLAYLIST_SONG_TABLE_COLUMNS}
/>