Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Much cleaner way to set icon

Michael Shamoon30185d560ca3
diff --git a/src-ui/src/app/components/filter-editor/filter-dropdown/filter-dropdown.component.html b/src-ui/src/app/components/filter-editor/filter-dropdown/filter-dropdown.component.html
index 76ef360fd..8f7d14e81 100644
--- a/src-ui/src/app/components/filter-editor/filter-dropdown/filter-dropdown.component.html
+++ b/src-ui/src/app/components/filter-editor/filter-dropdown/filter-dropdown.component.html
@@ -11,6 +11,9 @@
</svg>
<svg *ngSwitchCase="'file-earmark-fill'" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-file-earmark-fill" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M4 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 .293A1 1 0 0 0 9.293 0H4zm5.5 1.5v2a1 1 0 0 0 1 1h2l-3-3z" />
+ <div class="d-inline-block d-md-none">
+ <svg class="toolbaricon" fill="currentColor">
+ <use attr.xlink:href="assets/bootstrap-icons.svg#{{icon}}" />
</svg>
</div>
</button>