chore: consistent modal footer spacing (#19377)

This commit is contained in:
Daniel Dietzler 2025-06-20 20:05:39 +02:00 committed by GitHub
parent 1dc8fa2979
commit a5d84ba552
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 69 additions and 67 deletions

View file

@ -5,7 +5,7 @@
} from '$lib/components/shared-components/notification/notification';
import ApiKeyGrid from '$lib/components/user-settings-page/user-api-key-grid.svelte';
import { Permission } from '@immich/sdk';
import { Button, Checkbox, Label, Modal, ModalBody, ModalFooter } from '@immich/ui';
import { Button, Checkbox, HStack, Label, Modal, ModalBody, ModalFooter } from '@immich/ui';
import { mdiKeyVariant } from '@mdi/js';
import { onMount } from 'svelte';
import { t } from 'svelte-i18n';
@ -219,9 +219,9 @@
</ModalBody>
<ModalFooter>
<div class="flex gap-3 w-full">
<HStack fullWidth>
<Button shape="round" color="secondary" fullWidth onclick={() => onClose()}>{cancelText}</Button>
<Button shape="round" type="submit" fullWidth form="api-key-form">{submitText}</Button>
</div>
</HStack>
</ModalFooter>
</Modal>