File tree Expand file tree Collapse file tree 4 files changed +29
-7
lines changed
Expand file tree Collapse file tree 4 files changed +29
-7
lines changed Original file line number Diff line number Diff line change 3636 @apply mt-1 ml-1 hidden min-w-[auto] text-sm leading-none sm:flex;
3737}
3838
39+ .DocSearch-Button-Placeholder {
40+ @apply inline!;
41+ }
42+
3943.DocSearch-Button-Key {
4044 background : none;
4145 box-shadow : none;
Original file line number Diff line number Diff line change @@ -119,6 +119,15 @@ docsearch({
119119 apiKey : '9be495a1aaf367b47c873d30a8e7ccf5' ,
120120 indexName : 'nativephp' ,
121121 insights : true ,
122- container : '#docsearch' ,
122+ container : '#docsearch-desktop' ,
123+ debug : false ,
124+ } )
125+
126+ docsearch ( {
127+ appId : 'ZNII9QZ8WI' ,
128+ apiKey : '9be495a1aaf367b47c873d30a8e7ccf5' ,
129+ indexName : 'nativephp' ,
130+ insights : true ,
131+ container : '#docsearch-mobile' ,
123132 debug : false ,
124133} )
Original file line number Diff line number Diff line change @@ -218,9 +218,21 @@ class="flex items-center justify-between py-3 opacity-50 transition duration-200
218218 </nav >
219219
220220 <div
221- class =" mb-2 flex w-full items-center justify-between gap-2 pb-2"
221+ class =" mt-6 mb-2 flex w-full items-center justify-between gap-2 pb-2"
222222 >
223- <div >Theme:</div >
223+
224+ {{-- Doc search --}}
225+ <div class =" transition-all duration-200 ease-in-out will-change-transform" >
226+ <div
227+ id =" docsearch-mobile"
228+ x-on:click ="
229+ window.scrollTo({ top: 0, behavior: 'instant' })
230+ showMobileMenu = false
231+ "
232+ aria-label =" Search documentation"
233+ ></div >
234+ </div >
235+
224236 <div
225237 class =" flex h-10 items-center gap-0.5 rounded-full bg-gray-100 p-1 text-sm ring-1 ring-black/5 dark:bg-black/20 dark:ring-white/10"
226238 role =" radiogroup"
Original file line number Diff line number Diff line change @@ -183,12 +183,9 @@ class="opacity-60 transition duration-200 hover:opacity-100"
183183 {{-- Doc search --}}
184184 <div
185185 class =" -mr-0.5 transition-all duration-200 ease-in-out will-change-transform"
186- :class =" {
187- 'pr-0.5': showMobileMenu,
188- }"
189186 >
190187 <div
191- id =" docsearch"
188+ id =" docsearch-desktop "
192189 x-on:click =" if (window.innerWidth < 640) window.scrollTo({ top: 0, behavior: 'instant' })"
193190 aria-label =" Search documentation"
194191 ></div >
You can’t perform that action at this time.
0 commit comments