We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b68a817 commit 47690a6Copy full SHA for 47690a6
1 file changed
src/lib/sidebar/SidebarSearchDialog.svelte
@@ -73,11 +73,13 @@
73
{/each}
74
</div>
75
<p class="text-stone-400 mt-2">
76
- {searchState === "waiting"
77
- ? "Loading data..."
78
- : results.length === 0
79
- ? "No results"
80
- : results.length + " result(s) found!"}
+ {searchTerm === ""
+ ? ""
+ : searchState === "waiting"
+ ? "Loading data..."
+ : results.length === 0
81
+ ? "No results"
82
+ : results.length + " result(s) found!"}
83
</p>
84
85
<button class="bg-stone-700 w-full rounded-sm p-2 mt-2 text-white" onclick={() => dialog.close()}>Close</button>
0 commit comments