Skip to content

Commit

Permalink
Adjust image picker layout to prevent pager elements from changing po…
Browse files Browse the repository at this point in the history
…sitions
  • Loading branch information
tkleinke committed Jun 25, 2020
1 parent de96f2d commit 6245316
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/components/docedit/widgets/image-picker.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
i18n="@@docedit.imagePicker.linkImages">{{selectedDocuments.length}} Bilder verknüpfen</span>
</button>

<search-bar *ngIf="!selectedDocuments.length"
<search-bar [class.hidden-search-bar]="selectedDocuments.length"
[showFiltersMenu]="false"
(onQueryStringChanged)="setQueryString($event)"
class="ml-2">
Expand Down
12 changes: 9 additions & 3 deletions src/app/components/docedit/widgets/image-picker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@

search-bar {
flex-grow: 1;
}

input {
height: 39px;
input {
height: 39px;
}

&.hidden-search-bar {
input {
display: none;
}
}
}
}
.modal-body {
Expand Down

0 comments on commit 6245316

Please sign in to comment.