@@ -36,7 +36,8 @@ class="border-t border-gray-100 py-14 px-6 text-center text-sm sm:px-14">
36
36
x-show =" searchQuery.length && (threads.total || articles.total || users.total)"
37
37
x-data =" tabConfig()"
38
38
x-init =" $watch('activeTab', value => setActiveTab(value))"
39
- x-cloak >
39
+ x-cloak
40
+ >
40
41
<ul class =" grid grid-flow-col text-center text-gray-500 bg-gray-100 rounded-lg p-1" >
41
42
<li >
42
43
<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">
60
61
<ul >
61
62
<li x-show =" activeTab === 'threads'" class =" mt-2 text-sm text-gray-800" >
62
63
<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 >
70
71
</li >
71
72
<li x-show =" activeTab === 'articles'" class =" mt-2 text-sm text-gray-800" >
72
73
<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 >
80
81
</li >
81
82
<li x-show =" activeTab === 'users'" class =" mt-2 text-sm text-gray-800" >
82
83
<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 >
90
91
</li >
91
92
</ul >
92
93
</div >
@@ -108,4 +109,4 @@ class="border-t border-gray-100 py-14 px-6 text-center text-sm sm:px-14">
108
109
</a >
109
110
</div >
110
111
</div >
111
- </div >
112
+ </div >
0 commit comments