chore: video comments fix
This commit is contained in:
kieran 2024-06-05 12:03:42 +01:00
parent 160d9261fe
commit fa0c7514d5
No known key found for this signature in database
GPG Key ID: DE71CEB3925BE941
3 changed files with 5 additions and 9 deletions

View File

@ -55,17 +55,13 @@ export default function EventReactions({
);
return (
<div
className={classNames(className, "grid items-center text-neutral-500", {
"flex-col gap-8": vertical,
"gap-4": !vertical,
className={classNames(className, "flex gap-8 items-center text-neutral-500", {
"flex-col": vertical,
})}>
{replyKind && (
<AsyncButton
onClick={async () => {
if (pub) {
const evReact = await pub.react(ev);
await system.BroadcastEvent(evReact);
}
}}>
<div className={iconClass}>
<Icon name="message-circle" />

View File

@ -25,7 +25,7 @@ export default function VideoComment({ ev }: { ev: TaggedNostrEvent }) {
</div>
</div>
<Text content={ev.content} tags={ev.tags} />
<EventReactions ev={ev} replyKind={1} />
<EventReactions ev={ev} />
</div>
</div>
);

View File

@ -16,7 +16,7 @@ export function ChatPopout() {
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"));
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
ev={ev}
link={lnk}