Skip to content

Commit

Permalink
refactor(v2): increase search input on medium screens
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 committed May 23, 2020
1 parent 2499de7 commit f894133
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const Search = ({handleSearchBarToggle, isSearchBarExpanded}) => {
openOnFocus: true,
autoselect: false,
hint: false,
tabAutocomplete: false,
},
// Override algolia's default selection event, allowing us to do client-side
// navigation and avoiding a full page refresh.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
display: none;
}

@media (min-width: 769px) and (max-width: 996px) {
:global(.navbar__search),
:global(.navbar__search-input) {
width: 100%;
}
}

@media (max-width: 768px) {
.searchIconButton {
display: block;
Expand Down Expand Up @@ -53,10 +60,10 @@
.searchInputExpanded {
width: 100%;
}
}

:global(.algolia-autocomplete) {
width: 100%;
display: flex !important;
justify-content: flex-end;
}
:global(.algolia-autocomplete) {
width: 100%;
display: flex !important;
justify-content: flex-end;
}

0 comments on commit f894133

Please sign in to comment.