Skip to content

Commit

Permalink
docs: code formatting(#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
captaindav committed Apr 29, 2022
1 parent 3146c18 commit 0c60fad
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions docs/components/app/FullTextSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
@keydown.up="decrement"
@keydown.enter="go"
>
<label for="search" class="sr-only">Search</label>
<label
for="search"
class="sr-only"
>Search</label>
<div class="relative">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<IconSearch class="h-5 w-5 text-gray-500" />
Expand All @@ -22,7 +25,7 @@
autocomplete="off"
@focus="onFocus"
@blur="onBlur"
/>
>
</div>
</div>
<ul
Expand All @@ -31,7 +34,12 @@
:class="{ 'rounded-t-none': focus && (searching || results.length) }"
style="margin-top: 37px;"
>
<li v-if="searching && !results.length" class="px-4 py-2">Searching...</li>
<li
v-if="searching && !results.length"
class="px-4 py-2"
>
Searching...
</li>
<li
v-for="(result, index) of results"
:key="result.slug"
Expand All @@ -46,8 +54,14 @@
}"
@click="focus = false"
>
<span v-if="result.category" class="font-bold">{{ result.category }}</span>
<IconChevronRight v-if="result.category" class="w-3 h-3 mx-1" />
<span
v-if="result.category"
class="font-bold"
>{{ result.category }}</span>
<IconChevronRight
v-if="result.category"
class="w-3 h-3 mx-1"
/>
{{ result.title }}
</NuxtLink>
</li>
Expand Down

0 comments on commit 0c60fad

Please sign in to comment.