Skip to content

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

Move 'Filter by:' inline with title field, icon stuff

Michael Shamoon83dd5f51cd12
diff --git a/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.html b/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.html
index debbbe5b0..fc74eb4e9 100644
--- a/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.html
+++ b/src-ui/src/app/components/common/filterable-dropdown/filterable-dropdown.component.html
@@ -1,11 +1,9 @@
<div class="btn-group w-100" ngbDropdown role="group" (openChange)="dropdownOpenChange($event)" #dropdown="ngbDropdown">
<button class="btn btn-sm" id="dropdown{{title}}" ngbDropdownToggle [ngClass]="!editing && selectionModel.selectionSize() > 0 ? 'btn-primary' : 'btn-outline-primary'">
- <div class="d-none d-md-inline">{{title}}</div>
- <div class="d-inline-block d-md-none">
- <svg class="toolbaricon" fill="currentColor">
- <use attr.xlink:href="assets/bootstrap-icons.svg#{{icon}}" />
- </svg>
- </div>
+ <svg class="toolbaricon" fill="currentColor">
+ <use attr.xlink:href="assets/bootstrap-icons.svg#{{icon}}" />
+ </svg>
+ <div class="d-none d-sm-inline">&nbsp;{{title}}</div>
<ng-container *ngIf="!editing && selectionModel.selectionSize() > 0">
<div class="badge bg-secondary text-light rounded-pill badge-corner">
{{selectionModel.selectionSize()}}
diff --git a/src-ui/src/app/components/document-list/document-list.component.html b/src-ui/src/app/components/document-list/document-list.component.html
index 9cba30ff5..612238215 100644
--- a/src-ui/src/app/components/document-list/document-list.component.html
+++ b/src-ui/src/app/components/document-list/document-list.component.html
@@ -2,7 +2,7 @@
<div ngbDropdown class="mr-2 flex-fill d-flex">
<button class="btn btn-sm btn-outline-primary flex-fill" id="dropdownSelect" ngbDropdownToggle>
- <svg class="toolbaricon d-md-none" fill="currentColor">
+ <svg class="toolbaricon" fill="currentColor">
<use xlink:href="assets/bootstrap-icons.svg#text-indent-left" />
</svg>&nbsp;<ng-container i18n>Select</ng-container>
</button>
diff --git a/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.html b/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.html
index b2ed5242b..033596f53 100644
--- a/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.html
+++ b/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.html
@@ -1,8 +1,8 @@
<div class="row">
<div class="col mb-2 mb-xl-0">
- <div class="form-inline d-flex">
- <label class="text-muted mr-2" i18n>Filter by:</label>
- <input class="form-control form-control-sm flex-grow-1" type="text" [(ngModel)]="titleFilter" placeholder="Title" i18n-placeholder>
+ <div class="form-inline d-flex align-items-center">
+ <label class="text-muted mr-2 mb-0" i18n>Filter by:</label>
+ <input class="form-control form-control-sm flex-fill w-auto" type="text" [(ngModel)]="titleFilter" placeholder="Title" i18n-placeholder>
</div>
</div>
<div class="w-100 d-xl-none"></div>