Skip to content

Commit

Permalink
Fix search on mobile
Browse files Browse the repository at this point in the history
The input was hidden on small screens but the search icon was still
there which was confusing.
This adds the input back and adjusts the results' dropdown accordingly.
  • Loading branch information
fabianrbz committed Nov 3, 2023
1 parent 5a15a76 commit 1475cce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions app/_assets/stylesheets/header-v2.less
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,6 @@ header.navbar-v2 {
&::placeholder {
color: @color-text-light;
}

@media (max-width: 1100px) {
display: none;
}
}
}

Expand Down Expand Up @@ -674,7 +670,6 @@ header.navbar-v2 {
min-height: calc(100vh - 60px);
transform: translateY(-120%);
background: white center no-repeat;
background-image: url("/assets/images/icons/icn-search.svg");
z-index: -100;
transition: transform 0.25s;
}
Expand Down
2 changes: 1 addition & 1 deletion app/_includes/nav-v2.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@
</div>
</header>

{% if include.layout != "landing-page" %}
<style>
@media (max-width: 768px) {
.algolia-docsearch-suggestion--subcategory-column {
Expand All @@ -190,6 +189,7 @@
}
</style>

{% if include.layout != "landing-page" %}
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>

<script type="text/javascript">
Expand Down

0 comments on commit 1475cce

Please sign in to comment.