diff --git a/src/components/search.svelte b/src/components/search.svelte index 137dd89..f3d3092 100644 --- a/src/components/search.svelte +++ b/src/components/search.svelte @@ -1,9 +1,35 @@
@@ -17,9 +43,11 @@ type="text" {placeholder} autocomplete="off" - class="w-full border-b border-neutral-300 bg-white p-3 pl-11 placeholder-neutral-500 focus:outline-none focus:ring-1 focus:ring-neutral-300 dark:border-neutral-800 dark:bg-neutral-900 dark:focus:ring-neutral-700" + class="w-full border-b border-neutral-300 bg-white p-3 px-11 placeholder-neutral-500 focus:outline-none focus:ring-1 focus:ring-neutral-300 dark:border-neutral-800 dark:bg-neutral-900 dark:focus:ring-neutral-700" bind:value={searchTerm} on:input + use:focusInput + bind:this={inputElement} /> {#if searchTerm.length > 0}
@@ -31,6 +59,17 @@
+ {:else} +
+
+ {#if shortcutText === 'command'} + + {:else} + Ctrl + {/if} + K +
+
{/if}