Skip to content

Commit 533cdea

Browse files
alisaismailatisteph-ieffam
authored andcommitted
Merged in DSC-1573 (pull request DSpace#1460)
[DSC-1573] fixes Search box in Navbar width in small screens Approved-by: Stefano Maffei
2 parents 761a797 + 64d5b7d commit 533cdea

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/app/search-navbar/search-navbar.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<form [formGroup]="searchForm" (ngSubmit)="onSubmit(searchForm.value)" autocomplete="on" class="d-flex">
44
<input #searchInput [@toggleAnimation]="isExpanded" [attr.aria-label]="('nav.search' | translate)" name="query"
55
formControlName="query" type="text" placeholder="{{searchExpanded ? ('nav.search' | translate) : ''}}"
6-
class="bg-transparent position-absolute form-control dropdown-menu-right pl-1 pr-4"
6+
class="bg-transparent position-absolute form-control dropdown-menu-right pl-1 pr-4 search-input"
77
[class.display]="searchExpanded ? 'inline-block' : 'none'"
88
[tabIndex]="searchExpanded ? 0 : -1"
99
[attr.data-test]="'header-search-box' | dsBrowserOnly">

src/app/search-navbar/search-navbar.component.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,8 @@ input[type="text"] {
2828

2929
}
3030

31+
@media screen and (max-width: map-get($grid-breakpoints, sm)) {
32+
.search-input {
33+
width: 55vw !important;
34+
}
35+
}

0 commit comments

Comments
 (0)