feat: add panel mode and allow shifting of dock
This commit is contained in:
1 parent
91c5a88509
commit
6ffd3ceb99
9 files changed
+148
-14
No files matched your search
@@ -0,0 +1,21 @@
|
||||
<script lang="ts">
|
||||
import { goto } from '$app/navigation'
|
||||
import { TextInput } from 'mono-svelte'
|
||||
|
||||
let query: string = ''
|
||||
let loading = false
|
||||
|
||||
function search() {
|
||||
loading = true
|
||||
goto(`/search?q=${query}`).then(() => (loading = false))
|
||||
}
|
||||
</script>
|
||||
|
||||
<form on:submit|preventDefault={search} class="w-full h-full {$$props.class}">
|
||||
<TextInput
|
||||
bind:value={query}
|
||||
class="w-full h-full {$$props.class}"
|
||||
placeholder="Search"
|
||||
/>
|
||||
</form>
|
||||
<slot {search} {loading} />
|
||||
Reference in new issue
Block a user