Redo page styles

This commit is contained in:
2023-07-24 18:15:14 +01:00
parent 9d06a07df3
commit a881fd06a0
14 changed files with 165 additions and 312 deletions

View File

@ -9,14 +9,14 @@ export function ChatPopout() {
const link = parseNostrLink(params.id!);
const { data: ev } = useEventFeed(link, true);
const chat = new URL(window.location.href).searchParams.get("chat");
const chat = Boolean(new URL(window.location.href).searchParams.get("chat"));
return (
<div className="popout-chat">
<div className={`popout-chat${chat ? "" : " embed"}`}>
<LiveChat
ev={ev}
link={link}
options={{
canWrite: Boolean(chat),
canWrite: chat,
showHeader: false,
}}
/>