mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
adjust default modal styles
This commit is contained in:
@@ -8,31 +8,27 @@ import { ListFilters } from '/@/renderer/features/shared/components/list-filters
|
||||
import { ListRefreshButton } from '/@/renderer/features/shared/components/list-refresh-button';
|
||||
import { ListSortByDropdown } from '/@/renderer/features/shared/components/list-sort-by-dropdown';
|
||||
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 { Divider } from '/@/shared/components/divider/divider';
|
||||
import { Flex } from '/@/shared/components/flex/flex';
|
||||
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';
|
||||
|
||||
export const PlaylistListHeaderFilters = () => {
|
||||
const { t } = useTranslation();
|
||||
const server = useCurrentServer();
|
||||
const { ref, ...cq } = useContainerQuery();
|
||||
|
||||
const handleCreatePlaylistModal = () => {
|
||||
openModal({
|
||||
children: <CreatePlaylistForm onCancel={() => closeAllModals()} />,
|
||||
size: server?.type === ServerType?.NAVIDROME ? 'lg' : 'sm',
|
||||
size: 'lg',
|
||||
title: t('form.createPlaylist.title', { postProcess: 'sentenceCase' }),
|
||||
});
|
||||
};
|
||||
|
||||
return (
|
||||
<Flex justify="space-between">
|
||||
<Group gap="sm" ref={ref} w="100%">
|
||||
<Group gap="sm" w="100%">
|
||||
<ListSortByDropdown
|
||||
defaultSortByValue={PlaylistListSort.NAME}
|
||||
itemType={LibraryItem.PLAYLIST}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
.header {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: none;
|
||||
margin-bottom: var(--theme-spacing-md);
|
||||
background: var(--theme-colors-background);
|
||||
border-radius: 0;
|
||||
}
|
||||
@@ -14,6 +14,7 @@
|
||||
}
|
||||
|
||||
.content {
|
||||
padding: var(--theme-spacing-md);
|
||||
overflow: hidden;
|
||||
background: var(--theme-colors-background);
|
||||
border: 2px solid var(--theme-colors-border);
|
||||
|
||||
@@ -144,8 +144,8 @@ export const ModalsProvider = ({ children, ...rest }: ModalsProviderProps) => {
|
||||
icon: <Icon icon="x" size="xl" />,
|
||||
},
|
||||
overlayProps: {
|
||||
backgroundOpacity: 0.8,
|
||||
blur: 4,
|
||||
backgroundOpacity: 0.5,
|
||||
blur: 1,
|
||||
},
|
||||
radius: 'xl',
|
||||
scrollAreaComponent: ScrollArea,
|
||||
|
||||
Reference in New Issue
Block a user