feat: add scored searching

This commit is contained in:
Xylight committed 2024-07-19 18:03:20 -07:00
1 parent c0b93f65a9
commit f63db02e98
5 files changed
+116 -33

No files matched your search

+12 -2
View File
@@ -41,9 +41,10 @@
import Commands from './commands/Commands.svelte'
let searching = false
let promptOpen: boolean = false
</script>
<Commands />
<Commands bind:open={promptOpen} />
<nav
class="flex flex-row gap-2 items-center w-full mx-auto z-50 box-border p-0.5
duration-150
@@ -51,7 +52,16 @@
"
style={$$props.style}
>
<NavButton href="/" label={$t('nav.home')} class="ml-2 logo">
<NavButton
on:contextmenu={(e) => {
e.preventDefault()
promptOpen = true
return true
}}
href="/"
label={$t('nav.home')}
class="ml-2 logo"
>
<svelte:fragment slot="icon">
{#if LINKED_INSTANCE_URL}
{#if $site}