@ -55,17 +55,13 @@ export default function EventReactions({
|
|||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={classNames(className, "grid items-center text-neutral-500", {
|
className={classNames(className, "flex gap-8 items-center text-neutral-500", {
|
||||||
"flex-col gap-8": vertical,
|
"flex-col": vertical,
|
||||||
"gap-4": !vertical,
|
|
||||||
})}>
|
})}>
|
||||||
{replyKind && (
|
{replyKind && (
|
||||||
<AsyncButton
|
<AsyncButton
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
if (pub) {
|
|
||||||
const evReact = await pub.react(ev);
|
|
||||||
await system.BroadcastEvent(evReact);
|
|
||||||
}
|
|
||||||
}}>
|
}}>
|
||||||
<div className={iconClass}>
|
<div className={iconClass}>
|
||||||
<Icon name="message-circle" />
|
<Icon name="message-circle" />
|
||||||
|
@ -25,7 +25,7 @@ export default function VideoComment({ ev }: { ev: TaggedNostrEvent }) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Text content={ev.content} tags={ev.tags} />
|
<Text content={ev.content} tags={ev.tags} />
|
||||||
<EventReactions ev={ev} replyKind={1} />
|
<EventReactions ev={ev} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -16,7 +16,7 @@ export function ChatPopout() {
|
|||||||
const lnk = parseNostrLink(encodeTLV(NostrPrefix.Address, findTag(ev, "d") ?? "", undefined, ev?.kind, ev?.pubkey));
|
const lnk = parseNostrLink(encodeTLV(NostrPrefix.Address, findTag(ev, "d") ?? "", undefined, ev?.kind, ev?.pubkey));
|
||||||
const chat = Boolean(new URL(window.location.href).searchParams.get("chat"));
|
const chat = Boolean(new URL(window.location.href).searchParams.get("chat"));
|
||||||
return (
|
return (
|
||||||
<div className="h-[calc(100dvh-1rem)] w-screen px-2 my-2">
|
<div className="h-[calc(100vh-1rem)] w-screen px-2 my-2">
|
||||||
<LiveChat
|
<LiveChat
|
||||||
ev={ev}
|
ev={ev}
|
||||||
link={lnk}
|
link={lnk}
|
||||||
|
Reference in New Issue
Block a user