Skip to content

Commit bd4f5d9

Browse files
authored
chore: modal styling tweak (#174)
1 parent 9c40b51 commit bd4f5d9

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/lib/components/Modal/Modal.svelte

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
}: Props = $props();
3838
3939
const modalStyles = tv({
40-
base: 'bg-light dark:bg-subtle flex rounded-none border-none sm:rounded-2xl',
40+
base: 'bg-light dark:bg-subtle border-subtle shadow-primary/20 flex rounded-none border shadow-sm sm:rounded-2xl dark:border-white/10',
4141
variants: {
4242
size: {
4343
tiny: 'h-full sm:h-min md:max-w-sm',
@@ -69,28 +69,28 @@
6969
'absolute start-0 top-0 flex h-dvh w-screen items-center justify-center overflow-hidden sm:p-4',
7070
)}
7171
>
72-
<div class={cleanClass('flex h-full w-full flex-col items-center justify-center ')}>
72+
<div class={cleanClass('flex h-full w-full flex-col items-center justify-center')}>
7373
<Card class={cleanClass(modalStyles({ size }), className)}>
74-
<CardHeader class="border-b border-gray-400 py-3 dark:border-gray-500">
74+
<CardHeader class="border-b border-gray-200 px-5 py-3 dark:border-white/10">
7575
<div class="flex items-center justify-between gap-2">
7676
{#if typeof icon === 'string'}
7777
<Icon {icon} size="1.5rem" aria-hidden />
7878
{:else if icon}
7979
<Logo variant="icon" size="tiny" />
8080
{/if}
81-
<CardTitle tag="p" class="grow">{title}</CardTitle>
81+
<CardTitle tag="p" class="text-dark/90 grow text-lg font-semibold">{title}</CardTitle>
8282
<Dialog.Close>
8383
<CloseButton onclick={() => onChange(false)} class="-me-2" />
8484
</Dialog.Close>
8585
</div>
8686
</CardHeader>
8787

88-
<CardBody class="grow p-5">
88+
<CardBody class="grow px-5">
8989
{@render bodyChildren?.snippet()}
9090
</CardBody>
9191

9292
{#if footerChildren}
93-
<CardFooter class="border-t border-gray-400 dark:border-gray-500">
93+
<CardFooter class="border-t border-gray-200 dark:border-white/10">
9494
{@render footerChildren.snippet()}
9595
</CardFooter>
9696
{/if}

src/lib/theme/default.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
--immich-ui-info: 121 183 254;
4040
--immich-ui-gray: 33 33 33;
4141

42-
--immich-ui-default-border: 55 65 81;
42+
--immich-ui-default-border: 33 33 33;
4343
}
4444

4545
*,

0 commit comments

Comments
 (0)