Skip to content

Commit cc0eee9

Browse files
authored
fix: mobile doc search (#76)
1 parent 2a9b452 commit cc0eee9

File tree

3 files changed

+25
-21
lines changed

3 files changed

+25
-21
lines changed

composer.lock

+11-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/views/components/header-banner.blade.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ class="inline-flex items-center transition rounded hover:text-white/80 focus:out
2525
</a>
2626

2727
<div class="flex-1 md:col-span-2 lg:mx-16 xl:mx-32">
28-
<div id="docsearch"></div>
28+
<div id="docsearch"
29+
x-on:click="if (window.innerWidth < 640) window.scrollTo({ top: 0, behavior: 'instant' });"
30+
>
31+
32+
</div>
2933
</div>
3034

3135
<div class="hidden lg:flex items-center justify-end space-x-5">

0 commit comments

Comments
 (0)