File tree Expand file tree Collapse file tree 4 files changed +16
-39
lines changed Expand file tree Collapse file tree 4 files changed +16
-39
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 442442 " mt-20" ,
443443 " mt-4" ,
444444 " mt-8" ,
445+ " mt-[-0.5rem]" ,
445446 " mt-[2px]" ,
446447 " mx-1" ,
447448 " mx-auto" ,
510511 " py-8" ,
511512 " relative" ,
512513 " right-0" ,
514+ " right-0.2" ,
515+ " right-0.5" ,
516+ " right-1" ,
513517 " right-2" ,
518+ " right-6" ,
514519 " right-8" ,
515520 " ring-3-2" ,
516521 " ring-3-[1.5px]" ,
581586 " top-1" ,
582587 " top-16" ,
583588 " top-6" ,
589+ " top-full" ,
584590 " topbar-button" ,
585591 " transition" ,
586592 " transition-colors" ,
593599 " w-65" ,
594600 " w-8" ,
595601 " w-[1200px]" ,
602+ " w-[500px]" ,
603+ " w-[600px]" ,
596604 " w-full" ,
597605 " whitespace-nowrap" ,
598606 " xl:flex" ,
Original file line number Diff line number Diff line change 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 " x-init ="$nextTick(() => {
36- if (open) {
37- const containerRect = document.getElementById('search-bar-container').getBoundingClientRect();
38- const rect = $refs.searchBarRef.getBoundingClientRect();
39- $el.style.top = (rect.bottom + window.scrollY + 9) + 'px';
40- $el.style.left = (containerRect.right - 600) + 'px';
41- $el.style.width = '600px';
42- }
43- }) " x-effect ="if (open) {
44- const containerRect = document.getElementById('search-bar-container').getBoundingClientRect();
45- const rect = $refs.searchBarRef.getBoundingClientRect();
46- $el.style.top = (rect.bottom + window.scrollY + 9) + 'px';
47- $el.style.left = (containerRect.right - 600) + 'px';
48- $el.style.width = '600px';
49- } "
50- class ="font-medium text-gray-400 dark:text-gray-200 bg-gray-50 dark:bg-gray-900 rounded-sm mt-1 border-1 border-gray-100 dark:border-gray-700 fixed z-[999] max-w-xl p-6 shadow-md ">
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 "
37+ x-effect ="if (open) {
38+ const containerRect = document.getElementById('search-bar-container').getBoundingClientRect();
39+ const rect = $refs.searchBarRef.getBoundingClientRect();
40+ $el.style.top = (rect.bottom + window.scrollY - 2) + 'px';
41+ $el.style.right = (window.innerWidth - containerRect.right - 15) + 'px';
42+ } ">
5143 < div id ="search-bar-results ">
5244 {{- $emptyState := `< div > Start typing to search or try < button onclick ="askAI('search-bar-input') " class ="link "> Ask
5345 AI</ button > .</ div > ` }}
You can’t perform that action at this time.
0 commit comments