fix(web): avoid nesting buttons inside links (#11425)

This commit is contained in:
Michel Heusschen 2024-07-29 16:36:10 +02:00 committed by GitHub
parent 7bb7f63d57
commit 2e059bfbfd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 216 additions and 96 deletions

View file

@ -73,14 +73,19 @@
<p class="text-sm text-gray-500 dark:text-immich-dark-fg">{$user.email}</p>
</div>
<a href={AppRoute.USER_SETTINGS} on:click={() => dispatch('close')}>
<Button color="dark-gray" size="sm" shadow={false} border>
<div class="flex place-content-center place-items-center gap-2 px-2">
<Icon path={mdiCog} size="18" />
{$t('account_settings')}
</div>
</Button>
</a>
<Button
href={AppRoute.USER_SETTINGS}
on:click={() => dispatch('close')}
color="dark-gray"
size="sm"
shadow={false}
border
>
<div class="flex place-content-center place-items-center gap-2 px-2">
<Icon path={mdiCog} size="18" />
{$t('account_settings')}
</div>
</Button>
</div>
<div class="mb-4 flex flex-col">