Add capacitor, fix some mobile bugs

This commit is contained in:
Jon Staab
2024-11-15 15:16:06 -08:00
parent 763d4a01b1
commit 27613686fd
98 changed files with 3789 additions and 51 deletions
+2 -1
View File
@@ -4,6 +4,7 @@
import {writable} from "svelte/store"
import {createEditor, type Editor, EditorContent} from "svelte-tiptap"
import {append} from "@welshman/lib"
import {isMobile} from "@lib/html"
import {fly, slideAndFade} from "@lib/transition"
import Icon from "@lib/components/Icon.svelte"
import Button from "@lib/components/Button.svelte"
@@ -39,7 +40,7 @@
let editor: Readable<Editor>
onMount(() => {
editor = createEditor(getEditorOptions({submit, loading, getPubkeyHints, autofocus: true}))
editor = createEditor(getEditorOptions({submit, loading, getPubkeyHints, autofocus: !isMobile}))
})
</script>