Make remove tag interactive element

This commit is contained in:
shamoon 2024-05-20 08:56:02 -07:00
parent 3e62f13f96
commit 5b2ce2d34f
2 changed files with 3 additions and 7 deletions

View File

@ -17,12 +17,12 @@
(change)="onChange(value)"> (change)="onChange(value)">
<ng-template ng-label-tmp let-item="item"> <ng-template ng-label-tmp let-item="item">
<span class="tag-wrap tag-wrap-delete" (mousedown)="removeTag($event, item.id)"> <button class="tag-wrap btn p-0" (click)="removeTag($event, item.id)">
<i-bs name="x"></i-bs> <i-bs name="x" style="margin-inline-end: 1px;"></i-bs>
@if (item.id && tags) { @if (item.id && tags) {
<pngx-tag style="background-color: none;" [tag]="getTag(item.id)"></pngx-tag> <pngx-tag style="background-color: none;" [tag]="getTag(item.id)"></pngx-tag>
} }
</span> </button>
</ng-template> </ng-template>
<ng-template ng-option-tmp let-item="item" let-index="index" let-search="searchTerm"> <ng-template ng-option-tmp let-item="item" let-index="index" let-search="searchTerm">
<div class="tag-wrap"> <div class="tag-wrap">

View File

@ -7,10 +7,6 @@
font-size: 1rem; font-size: 1rem;
} }
.tag-wrap-delete {
cursor: pointer;
}
.paperless-input-select.disabled { .paperless-input-select.disabled {
.input-group { .input-group {
cursor: not-allowed; cursor: not-allowed;