Add upload images to replies and refactor the editor

This commit is contained in:
dtonon 2026-04-15 15:54:23 +01:00
parent 8f0b66589e
commit e96e99cb36
3 changed files with 130 additions and 101 deletions

View file

@ -11,6 +11,7 @@
import { withJoin } from "$lib/join.svelte";
import Reactions from "$lib/components/Reactions.svelte";
import ThreadScrubber from "$lib/components/ThreadScrubber.svelte";
import MessageEditor from "$lib/components/MessageEditor.svelte";
import { loadNostrUser, type NostrUser } from "@nostr/gadgets/metadata";
import * as nip19 from "@nostr/tools/nip19";
@ -377,13 +378,12 @@
{replyError}
</div>
{/if}
<textarea
rows="4"
placeholder="Write a reply..."
<MessageEditor
bind:value={replyContent}
disabled={replying}
class="w-full rounded border border-gray-200 px-3 py-2 focus:outline-none focus:ring-1 focus:ring-brand disabled:opacity-50"
></textarea>
rows={4}
placeholder="Write a reply..."
/>
<div class="mt-2 flex justify-end">
<button
onclick={submitReply}