adjust default modal styles

This commit is contained in:
jeffvli
2025-11-29 04:02:25 -08:00
parent 998eb02621
commit a99a02c94c
3 changed files with 7 additions and 10 deletions
@@ -8,31 +8,27 @@ import { ListFilters } from '/@/renderer/features/shared/components/list-filters
import { ListRefreshButton } from '/@/renderer/features/shared/components/list-refresh-button'; import { ListRefreshButton } from '/@/renderer/features/shared/components/list-refresh-button';
import { ListSortByDropdown } from '/@/renderer/features/shared/components/list-sort-by-dropdown'; import { ListSortByDropdown } from '/@/renderer/features/shared/components/list-sort-by-dropdown';
import { ListSortOrderToggleButton } from '/@/renderer/features/shared/components/list-sort-order-toggle-button'; import { ListSortOrderToggleButton } from '/@/renderer/features/shared/components/list-sort-order-toggle-button';
import { useContainerQuery } from '/@/renderer/hooks';
import { useCurrentServer } from '/@/renderer/store';
import { Button } from '/@/shared/components/button/button'; import { Button } from '/@/shared/components/button/button';
import { Divider } from '/@/shared/components/divider/divider'; import { Divider } from '/@/shared/components/divider/divider';
import { Flex } from '/@/shared/components/flex/flex'; import { Flex } from '/@/shared/components/flex/flex';
import { Group } from '/@/shared/components/group/group'; import { Group } from '/@/shared/components/group/group';
import { LibraryItem, PlaylistListSort, ServerType, SortOrder } from '/@/shared/types/domain-types'; import { LibraryItem, PlaylistListSort, SortOrder } from '/@/shared/types/domain-types';
import { ItemListKey } from '/@/shared/types/types'; import { ItemListKey } from '/@/shared/types/types';
export const PlaylistListHeaderFilters = () => { export const PlaylistListHeaderFilters = () => {
const { t } = useTranslation(); const { t } = useTranslation();
const server = useCurrentServer();
const { ref, ...cq } = useContainerQuery();
const handleCreatePlaylistModal = () => { const handleCreatePlaylistModal = () => {
openModal({ openModal({
children: <CreatePlaylistForm onCancel={() => closeAllModals()} />, children: <CreatePlaylistForm onCancel={() => closeAllModals()} />,
size: server?.type === ServerType?.NAVIDROME ? 'lg' : 'sm', size: 'lg',
title: t('form.createPlaylist.title', { postProcess: 'sentenceCase' }), title: t('form.createPlaylist.title', { postProcess: 'sentenceCase' }),
}); });
}; };
return ( return (
<Flex justify="space-between"> <Flex justify="space-between">
<Group gap="sm" ref={ref} w="100%"> <Group gap="sm" w="100%">
<ListSortByDropdown <ListSortByDropdown
defaultSortByValue={PlaylistListSort.NAME} defaultSortByValue={PlaylistListSort.NAME}
itemType={LibraryItem.PLAYLIST} itemType={LibraryItem.PLAYLIST}
+2 -1
View File
@@ -1,7 +1,7 @@
.header { .header {
display: flex; display: flex;
justify-content: center; justify-content: center;
padding: none; margin-bottom: var(--theme-spacing-md);
background: var(--theme-colors-background); background: var(--theme-colors-background);
border-radius: 0; border-radius: 0;
} }
@@ -14,6 +14,7 @@
} }
.content { .content {
padding: var(--theme-spacing-md);
overflow: hidden; overflow: hidden;
background: var(--theme-colors-background); background: var(--theme-colors-background);
border: 2px solid var(--theme-colors-border); border: 2px solid var(--theme-colors-border);
+2 -2
View File
@@ -144,8 +144,8 @@ export const ModalsProvider = ({ children, ...rest }: ModalsProviderProps) => {
icon: <Icon icon="x" size="xl" />, icon: <Icon icon="x" size="xl" />,
}, },
overlayProps: { overlayProps: {
backgroundOpacity: 0.8, backgroundOpacity: 0.5,
blur: 4, blur: 1,
}, },
radius: 'xl', radius: 'xl',
scrollAreaComponent: ScrollArea, scrollAreaComponent: ScrollArea,