Apply layout changes to chat

This commit is contained in:
Jon Staab
2025-03-04 10:20:06 -08:00
parent 1c0b2a09df
commit a582b1ea73
5 changed files with 177 additions and 140 deletions
@@ -9,7 +9,13 @@
import {pushModal} from "@app/modal"
import {clip} from "@app/toast"
const {event, pubkeys} = $props()
type Props = {
pubkeys: string[]
event: TrustedEvent
reply: () => void
}
const {event, pubkeys, reply}: Props = $props()
const onEmoji = ((event: TrustedEvent, emoji: NativeEmoji) => {
history.back()
@@ -18,6 +24,11 @@
const showEmojiPicker = () => pushModal(EmojiPicker, {onClick: onEmoji}, {replaceState: true})
const sendReply = () => {
history.back()
reply()
}
const copyText = () => {
history.back()
clip(event.content)
@@ -31,6 +42,10 @@
<Icon size={4} icon="smile-circle" />
Send Reaction
</Button>
<Button class="btn btn-neutral w-full" onclick={sendReply}>
<Icon size={4} icon="reply" />
Send Reply
</Button>
<Button class="btn btn-neutral w-full" onclick={copyText}>
<Icon size={4} icon="copy" />
Copy Text