refactor: more css purging

This commit is contained in:
2024-03-04 12:44:17 +00:00
parent ae37f361ce
commit 6dd9730ca6
60 changed files with 728 additions and 1120 deletions

View File

@ -1,4 +1,3 @@
import "./chat-popout.css";
import { useParams } from "react-router-dom";
import { NostrPrefix, encodeTLV, parseNostrLink } from "@snort/system";
import { unwrap } from "@snort/shared";
@ -17,15 +16,15 @@ 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={`popout-chat${chat ? "" : " embed"}`}>
<div className="h-[calc(100vh-1rem)] w-screen px-2 my-2">
<LiveChat
ev={ev}
link={lnk}
options={{
canWrite: chat,
showHeader: false,
}}
canWrite={chat}
showHeader={false}
showScrollbar={false}
goal={goal}
className="h-inherit"
/>
</div>
);