per_page control can now be set on the right of the page

This commit is contained in:
Jean-Baptiste Bellet
2022-06-28 18:12:20 +02:00
parent 77e384ab71
commit 8d66f33230
2 changed files with 13 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
.per-page{'ng-show' => '!RequestMonitor.loading && orders.length > 0'}
- position ||= ""
.per-page{'ng-show' => '!RequestMonitor.loading && orders.length > 0', class: ("right" if position == "right") }
%input.per-page-select.ofn-select2{type: 'number', data: 'per_page_options', 'min-search' => 999, 'ng-model' => 'per_page', 'ng-change' => 'fetchResults()'}
%span.per-page-feedback

View File

@@ -1,6 +1,17 @@
.per-page {
float: left;
&.right {
display: flex;
flex-direction: row-reverse;
align-items: center;
.per-page-feedback {
margin-right: 1em;
margin-left: 0;
}
}
.per-page-feedback {
margin-left: 1em;
}