mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix(web): avoid nesting buttons inside links (#11425)
This commit is contained in:
parent
7bb7f63d57
commit
2e059bfbfd
15 changed files with 216 additions and 96 deletions
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -60,9 +60,13 @@
|
|||
|
||||
<section class="flex place-items-center justify-end gap-4 max-sm:w-full">
|
||||
{#if $featureFlags.search}
|
||||
<a href={AppRoute.SEARCH} id="search-button" class="ml-4 sm:hidden">
|
||||
<CircleIconButton title={$t('go_to_search')} icon={mdiMagnify} />
|
||||
</a>
|
||||
<CircleIconButton
|
||||
href={AppRoute.SEARCH}
|
||||
id="search-button"
|
||||
class="ml-4 sm:hidden"
|
||||
title={$t('go_to_search')}
|
||||
icon={mdiMagnify}
|
||||
/>
|
||||
{/if}
|
||||
|
||||
<ThemeButton />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue