File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
- < div
1
+ < div
2
2
x-ref ="searchBarRef "
3
3
x-data ="{ open: false } "
4
4
@click.outside ="open = false; "
32
32
{{ partial "utils/svg.html" "/icons/search.svg" }}
33
33
</ span >
34
34
</ 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 "
37
40
x-effect ="if (open) {
38
41
const containerRect = document.getElementById('search-bar-container').getBoundingClientRect();
39
42
const rect = $refs.searchBarRef.getBoundingClientRect();
You can’t perform that action at this time.
0 commit comments