update project config to match official create vue recommendations

This commit is contained in:
Marco Crapts
2023-05-19 14:16:44 +02:00
parent 0619707054
commit 35b016449a
15 changed files with 4539 additions and 205 deletions

View File

@@ -56,17 +56,16 @@ const handleKeydown = (event: KeyboardEvent) => {
@keydown="handleKeydown"
/>
<div class="z-1000 dropdown absolute left-0 right-0 top-[100%]" v-if="active">
<ul
tabindex="0"
class="menu mt-1 w-full rounded-md bg-base-100 p-2 text-black shadow"
>
<SearchResult
v-for="result in results"
v-if="results.length > 0"
:result="result"
:active-result="activeResult"
@go-to-note="() => goToNote(result)"
/>
<ul tabindex="0" class="menu mt-1 w-full rounded-md bg-base-100 p-2 text-black shadow">
<template v-if="results.length > 0">
<SearchResult
v-for="result in results"
:key="result.id"
:result="result"
:active-result="activeResult"
@go-to-note="() => goToNote(result)"
/>
</template>
<li v-else><a>No notes found</a></li>
</ul>
</div>