]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Enhancement: Add tooltip for select dropdown items (#5070)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Thu, 21 Dec 2023 16:44:34 +0000 (08:44 -0800)
committerGitHub <noreply@github.com>
Thu, 21 Dec 2023 16:44:34 +0000 (08:44 -0800)
src-ui/src/app/components/common/input/select/select.component.html

index bdffbcc12bf9c5502333dcce2ed64f5f49cabe3b..3a10b0019d3474196f1d74b7e4740be540024e6e 100644 (file)
@@ -34,6 +34,9 @@
             (focus)="clearLastSearchTerm()"
             (clear)="clearLastSearchTerm()"
             (blur)="onBlur()">
+            <ng-template ng-option-tmp let-item="item">
+                <span [title]="item.name">{{item.name}}</span>
+            </ng-template>
           </ng-select>
           @if (allowCreateNew) {
             <button class="btn btn-outline-secondary" type="button" (click)="addItem()" [disabled]="disabled">