Skip to content

Commit 823049d

Browse files
committed
mobile: fix search
1 parent 9d6032d commit 823049d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

layouts/partials/search-bar.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div
1+
<div
22
x-ref="searchBarRef"
33
x-data="{ open: false }"
44
@click.outside="open = false;"
@@ -32,8 +32,11 @@
3232
{{ partial "utils/svg.html" "/icons/search.svg" }}
3333
</span>
3434
</div>
35-
<div id="search-bar-dropdown" x-show="open" x-cloak x-ref="dropdown"
36-
class="font-medium text-gray-400 dark:text-gray-200 bg-gray-50 dark:bg-gray-900 rounded-sm mt-4 border-1 border-gray-100 dark:border-gray-700 fixed z-[999] w-[500px] p-6 shadow-md"
35+
<div id="search-bar-dropdown"
36+
x-show="open"
37+
x-cloak
38+
x-ref="dropdown"
39+
class="hidden sm:block font-medium text-gray-400 dark:text-gray-200 bg-gray-50 dark:bg-gray-900 rounded-sm mt-4 border-1 border-gray-100 dark:border-gray-700 fixed z-[999] w-[500px] p-6 shadow-md"
3740
x-effect="if (open) {
3841
const containerRect = document.getElementById('search-bar-container').getBoundingClientRect();
3942
const rect = $refs.searchBarRef.getBoundingClientRect();

0 commit comments

Comments
 (0)