Skip to content

Commit

Permalink
fix: use flex to make the search tool selects line up.
Browse files Browse the repository at this point in the history
  • Loading branch information
crhallberg committed Oct 25, 2024
1 parent fa781c1 commit 86e8d7c
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 28 deletions.
2 changes: 1 addition & 1 deletion config/vufind/searches.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ default_view = list
; If you must support large page sizes, you may need to raise the PHP memory_limit
; and max_input_vars settings and/or adjust the Apache LimitRequestLine setting.
default_limit = 20
;limit_options = 10,20,40,60,80,100
limit_options = 10,20,40,60,80,100

; This setting allows to limit pagination of a search result as deep pagination
; costs a lot of performance and most users are not very likely to navigate
Expand Down
6 changes: 3 additions & 3 deletions themes/bootprint3/css/compiled.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions themes/bootstrap3/css/compiled.css

Large diffs are not rendered by default.

15 changes: 10 additions & 5 deletions themes/bootstrap3/less/components/search.less
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,16 @@ header .container.navbar { margin-bottom: 0; }
.search-result-limit {
display: flex;
gap: 0.5rem;
}
.search-sort label,
.search-result-limit label {
white-space: nowrap;
line-height: @input-height-base;

label {
flex: none;
white-space: nowrap;
line-height: @input-height-base;
}

select.form-control {
flex: 1 1 0%;
}
}

.search-stats {
Expand Down
15 changes: 10 additions & 5 deletions themes/bootstrap3/scss/components/search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,16 @@ header .container.navbar { margin-bottom: 0; }
.search-result-limit {
display: flex;
gap: 0.5rem;
}
.search-sort label,
.search-result-limit label {
white-space: nowrap;
line-height: $input-height-base;

label {
flex: none;
white-space: nowrap;
line-height: $input-height-base;
}

select.form-control {
flex: 1 1 0%;
}
}

.search-stats {
Expand Down
2 changes: 1 addition & 1 deletion themes/bootstrap5/css/compiled.css

Large diffs are not rendered by default.

15 changes: 10 additions & 5 deletions themes/bootstrap5/scss/components/search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,16 @@ header .container.navbar { margin-bottom: 0; }
.search-result-limit {
display: flex;
gap: 0.5rem;
}
.search-sort label,
.search-result-limit label {
white-space: nowrap;
line-height: $input-height-base;

label {
flex: none;
white-space: nowrap;
line-height: $input-height-base;
}

select.form-control {
flex: 1 1 0%;
}
}

.search-stats {
Expand Down
2 changes: 1 addition & 1 deletion themes/local_theme_example/css/compiled.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions themes/sandal/css/compiled.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion themes/sandal5/css/compiled.css

Large diffs are not rendered by default.

0 comments on commit 86e8d7c

Please sign in to comment.