Make sharing indicator nicer

This commit is contained in:
Jon Staab
2025-02-06 11:33:01 -08:00
parent 98a0511b34
commit 19f657e348
8 changed files with 56 additions and 30 deletions
+1 -7
View File
@@ -1,5 +1,4 @@
<script lang="ts">
import {onMount} from "svelte"
import {writable} from "svelte/store"
import {isMobile, preventDefault} from "@lib/html"
import Icon from "@lib/components/Icon.svelte"
@@ -9,10 +8,9 @@
interface Props {
onSubmit: any
content?: string
}
const {onSubmit, content = ""}: Props = $props()
const {onSubmit}: Props = $props()
const autofocus = !isMobile
@@ -36,10 +34,6 @@
}
const editor = makeEditor({autofocus, submit, uploading, aggressive: true})
onMount(() => {
editor.chain().setContent(content).run()
})
</script>
<form class="relative z-feature flex gap-2 p-2" onsubmit={preventDefault(submit)}>