chore: minor styling tweaks
This commit is contained in:
@@ -49,42 +49,42 @@
|
|||||||
</FormatMessage>
|
</FormatMessage>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="min-h-36">
|
<form on:submit|preventDefault={handleSubmit} autocomplete="off" id="create-tag-form">
|
||||||
<form on:submit|preventDefault={handleSubmit} autocomplete="off" id="create-tag-form">
|
<div class="my-4 flex flex-col gap-2">
|
||||||
<div class="my-4 flex flex-col gap-2">
|
<Combobox
|
||||||
<Combobox
|
on:select={({ detail: option }) => handleSelect(option)}
|
||||||
on:select={({ detail: option }) => handleSelect(option)}
|
label={$t('tag')}
|
||||||
label={$t('tag')}
|
options={allTags.map((tag) => ({ id: tag.id, label: tag.value, value: tag.id }))}
|
||||||
options={allTags.map((tag) => ({ id: tag.id, label: tag.value, value: tag.id }))}
|
placeholder={$t('search_tags')}
|
||||||
placeholder={$t('search_tags')}
|
/>
|
||||||
/>
|
</div>
|
||||||
</div>
|
</form>
|
||||||
</form>
|
|
||||||
<section class="flex flex-wrap pt-2 gap-1">
|
<section class="flex flex-wrap pt-2 gap-1">
|
||||||
{#each selectedIds as tagId (tagId)}
|
{#each selectedIds as tagId (tagId)}
|
||||||
{@const tag = tagMap[tagId]}
|
{@const tag = tagMap[tagId]}
|
||||||
{#if tag}
|
{#if tag}
|
||||||
<div class="flex group transition-all">
|
<div class="flex group transition-all">
|
||||||
<span
|
<span
|
||||||
class="inline-block h-min whitespace-nowrap pl-3 pr-1 group-hover:pl-3 py-1 text-center align-baseline leading-none text-gray-100 dark:text-immich-dark-gray bg-immich-primary dark:bg-immich-dark-primary rounded-tl-full rounded-bl-full hover:bg-immich-primary/80 dark:hover:bg-immich-dark-primary/80 transition-all"
|
class="inline-block h-min whitespace-nowrap pl-3 pr-1 group-hover:pl-3 py-1 text-center align-baseline leading-none text-gray-100 dark:text-immich-dark-gray bg-immich-primary dark:bg-immich-dark-primary rounded-tl-full rounded-bl-full hover:bg-immich-primary/80 dark:hover:bg-immich-dark-primary/80 transition-all"
|
||||||
>
|
>
|
||||||
<p class="text-sm">
|
<p class="text-sm">
|
||||||
{tag.value}
|
{tag.value}
|
||||||
</p>
|
</p>
|
||||||
</span>
|
</span>
|
||||||
<button
|
|
||||||
type="button"
|
<button
|
||||||
class="text-gray-100 dark:text-immich-dark-gray bg-immich-primary/95 dark:bg-immich-dark-primary/95 rounded-tr-full rounded-br-full place-items-center place-content-center pr-2 pl-1 py-1 hover:bg-immich-primary/80 dark:hover:bg-immich-dark-primary/80 transition-all"
|
type="button"
|
||||||
title="Remove tag"
|
class="text-gray-100 dark:text-immich-dark-gray bg-immich-primary/95 dark:bg-immich-dark-primary/95 rounded-tr-full rounded-br-full place-items-center place-content-center pr-2 pl-1 py-1 hover:bg-immich-primary/80 dark:hover:bg-immich-dark-primary/80 transition-all"
|
||||||
on:click={() => handleRemove(tagId)}
|
title="Remove tag"
|
||||||
>
|
on:click={() => handleRemove(tagId)}
|
||||||
<Icon path={mdiClose} />
|
>
|
||||||
</button>
|
<Icon path={mdiClose} />
|
||||||
</div>
|
</button>
|
||||||
{/if}
|
</div>
|
||||||
{/each}
|
{/if}
|
||||||
</section>
|
{/each}
|
||||||
</div>
|
</section>
|
||||||
|
|
||||||
<svelte:fragment slot="sticky-bottom">
|
<svelte:fragment slot="sticky-bottom">
|
||||||
<Button color="gray" fullwidth on:click={onCancel}>{$t('cancel')}</Button>
|
<Button color="gray" fullwidth on:click={onCancel}>{$t('cancel')}</Button>
|
||||||
|
|||||||
@@ -82,7 +82,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{#if isStickyBottom}
|
{#if isStickyBottom}
|
||||||
<div
|
<div
|
||||||
class="flex flex-col sm:flex-row justify-end w-full gap-2 sm:gap-4 sticky -bottom-[4px] py-2 px-5 bg-immich-bg dark:bg-immich-dark-gray border-t border-gray-200 dark:border-gray-500"
|
class="flex flex-col sm:flex-row justify-end w-full gap-2 sm:gap-4 sticky pt-4 px-5 bg-immich-bg dark:bg-immich-dark-gray border-t border-gray-200 dark:border-gray-500"
|
||||||
>
|
>
|
||||||
<slot name="sticky-bottom" />
|
<slot name="sticky-bottom" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user