Improve positioning of tag editor badges

This commit is contained in:
Henrik Giesel 2021-07-02 14:29:41 +02:00
parent 16e6da893b
commit d15d6d1584
2 changed files with 6 additions and 2 deletions

View File

@ -46,6 +46,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
span :global(svg) {
border-radius: inherit;
vertical-align: -0.125rem;
vertical-align: var(--badge-align, -0.125rem);
}
</style>

View File

@ -367,11 +367,15 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
<div class="gap" on:mousedown|preventDefault>
{#if tags.some((tag) => tag.selected)}
<SelectedTagBadge
--badge-align="-webkit-baseline-middle"
on:tagcopy={copySelectedTags}
on:tagdelete={deleteSelectedTags}
/>
{:else}
<AddTagBadge on:click={appendEmptyTag} />
<AddTagBadge
--badge-align="-webkit-baseline-middle"
on:click={appendEmptyTag}
/>
{/if}
</div>