Improve positioning of tag editor badges
This commit is contained in:
parent
16e6da893b
commit
d15d6d1584
@ -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>
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user