Adjust offsets and sizes to make tag input smaller
This commit is contained in:
parent
77be86ec21
commit
8a48d26cca
@ -24,11 +24,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||||||
<TagInputEdit bind:name on:focusout={() => (active = false)} />
|
<TagInputEdit bind:name on:focusout={() => (active = false)} />
|
||||||
{:else}
|
{:else}
|
||||||
<span
|
<span
|
||||||
class="tag text-nowrap bg-secondary rounded p-1 ps-2 me-2"
|
class="d-inline-flex align-items-center tag text-nowrap bg-secondary rounded ps-2 pe-1 me-1"
|
||||||
on:click|stopPropagation={() => (active = true)}
|
on:click|stopPropagation={() => (active = true)}
|
||||||
>
|
>
|
||||||
<span>{name}</span>
|
<span>{name}</span>
|
||||||
<Badge class="rounded delete-icon" on:click={tagDelete}
|
<Badge class="rounded delete-icon ms-1 mt-1" on:click={tagDelete}
|
||||||
>{@html deleteIcon}</Badge
|
>{@html deleteIcon}</Badge
|
||||||
>
|
>
|
||||||
</span>
|
</span>
|
||||||
@ -37,13 +37,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
$white-translucent: rgba(255, 255, 255, 0.5);
|
$white-translucent: rgba(255, 255, 255, 0.5);
|
||||||
|
|
||||||
.tag :global(.delete-icon) {
|
.tag :global(.delete-icon > svg:hover) {
|
||||||
& > :global(svg) {
|
background-color: $white-translucent;
|
||||||
vertical-align: text-bottom;
|
|
||||||
}
|
|
||||||
|
|
||||||
& > :global(svg:hover) {
|
|
||||||
background-color: $white-translucent;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -40,6 +40,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||||||
</StickyBottom>
|
</StickyBottom>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
div {
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
:global(#mdi-tag-outline) {
|
:global(#mdi-tag-outline) {
|
||||||
fill: currentColor;
|
fill: currentColor;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
Loading…
Reference in New Issue
Block a user