Skip to content

Commit b3903e0

Browse files
committed
back to reformat
1 parent a5df4b7 commit b3903e0

File tree

1 file changed

+24
-23
lines changed

1 file changed

+24
-23
lines changed

resources/views/_partials/_search.blade.php

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ class="border-t border-gray-100 py-14 px-6 text-center text-sm sm:px-14">
3636
x-show="searchQuery.length && (threads.total || articles.total || users.total)"
3737
x-data="tabConfig()"
3838
x-init="$watch('activeTab', value => setActiveTab(value))"
39-
x-cloak>
39+
x-cloak
40+
>
4041
<ul class="grid grid-flow-col text-center text-gray-500 bg-gray-100 rounded-lg p-1">
4142
<li>
4243
<a href="javascript:void(0)" @click="activeTab = 'threads'" class="flex justify-center py-4" :class="currentTab('threads')">
@@ -60,33 +61,33 @@ class="border-t border-gray-100 py-14 px-6 text-center text-sm sm:px-14">
6061
<ul>
6162
<li x-show="activeTab === 'threads'" class="mt-2 text-sm text-gray-800">
6263
<template x-for="thread in threads.threads">
63-
<li class="cursor-default select-none px-4 py-2 hover:bg-lio-100" :id="`option-${thread.id}`" role="option" tabindex="-1">
64-
<a :href="'/forum/'+thread.slug" class="flex flex-col">
65-
<span class="text-black-900 font-medium break-all" x-html="thread._highlightResult.subject.value"></span>
66-
<span class="text-black-900 break-all" x-html="thread._snippetResult.body.value"></span>
67-
</a>
68-
</li>
69-
</template>
64+
<li class="cursor-default select-none px-4 py-2 hover:bg-lio-100" :id="`option-${thread.id}`" role="option" tabindex="-1">
65+
<a :href="'/forum/'+thread.slug" class="flex flex-col">
66+
<span class="text-black-900 font-medium break-all" x-html="thread._highlightResult.subject.value"></span>
67+
<span class="text-black-900 break-all" x-html="thread._snippetResult.body.value"></span>
68+
</a>
69+
</li>
70+
</template>
7071
</li>
7172
<li x-show="activeTab === 'articles'" class="mt-2 text-sm text-gray-800">
7273
<template x-for="article in articles.articles">
73-
<li class="cursor-default select-none px-4 py-2 hover:bg-lio-100" :id="`option-${article.id}`" role="option" tabindex="-1">
74-
<a :href="'/articles/'+article.slug" class="flex flex-col">
75-
<span class="text-black-900 font-medium break-all" x-html="article._highlightResult.title.value"></span>
76-
<span class="text-black-900 break-all" x-html="article._snippetResult.body.value"></span>
77-
</a>
78-
</li>
79-
</template>
74+
<li class="cursor-default select-none px-4 py-2 hover:bg-lio-100" :id="`option-${article.id}`" role="option" tabindex="-1">
75+
<a :href="'/articles/'+article.slug" class="flex flex-col">
76+
<span class="text-black-900 font-medium break-all" x-html="article._highlightResult.title.value"></span>
77+
<span class="text-black-900 break-all" x-html="article._snippetResult.body.value"></span>
78+
</a>
79+
</li>
80+
</template>
8081
</li>
8182
<li x-show="activeTab === 'users'" class="mt-2 text-sm text-gray-800">
8283
<template x-for="user in users.users">
83-
<li class="cursor-default select-none px-4 py-2 hover:bg-lio-100" :id="`option-${user.id}`" role="option" tabindex="-1">
84-
<a :href="'/user/'+user.username" class="flex flex-col">
85-
<span class="text-black-900 font-medium break-all" x-html="user._highlightResult.username.value"></span>
86-
<span class="text-black-900 break-all" x-html="user._highlightResult.name.value"></span>
87-
</a>
88-
</li>
89-
</template>
84+
<li class="cursor-default select-none px-4 py-2 hover:bg-lio-100" :id="`option-${user.id}`" role="option" tabindex="-1">
85+
<a :href="'/user/'+user.username" class="flex flex-col">
86+
<span class="text-black-900 font-medium break-all" x-html="user._highlightResult.username.value"></span>
87+
<span class="text-black-900 break-all" x-html="user._highlightResult.name.value"></span>
88+
</a>
89+
</li>
90+
</template>
9091
</li>
9192
</ul>
9293
</div>
@@ -108,4 +109,4 @@ class="border-t border-gray-100 py-14 px-6 text-center text-sm sm:px-14">
108109
</a>
109110
</div>
110111
</div>
111-
</div>
112+
</div>

0 commit comments

Comments
 (0)