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
22 changed files with 69 additions and 67 deletions

View File

@@ -5,7 +5,7 @@
import { ByteUnit, convertFromBytes, convertToBytes } from '$lib/utils/byte-units';
import { handleError } from '$lib/utils/handle-error';
import { updateUserAdmin, type UserAdminResponseDto } from '@immich/sdk';
import { Button, Field, Modal, ModalBody, ModalFooter, Switch } from '@immich/ui';
import { Button, Field, HStack, Modal, ModalBody, ModalFooter, Switch } from '@immich/ui';
import { mdiAccountEditOutline } from '@mdi/js';
import { t } from 'svelte-i18n';
@@ -115,11 +115,11 @@
</ModalBody>
<ModalFooter>
<div class="flex gap-3 w-full">
<HStack fullWidth>
<Button shape="round" color="secondary" fullWidth form="edit-user-form" onclick={() => onClose()}
>{$t('cancel')}</Button
>
<Button type="submit" shape="round" fullWidth form="edit-user-form">{$t('confirm')}</Button>
</div>
</HStack>
</ModalFooter>
</Modal>