diff --git a/src/pages/chat-popout.css b/src/pages/chat-popout.css index c9d11fa..beadaca 100644 --- a/src/pages/chat-popout.css +++ b/src/pages/chat-popout.css @@ -1,5 +1,13 @@ +.popout-chat { + grid-area: main-content; +} + .popout-chat .live-chat { - height: calc(100vh - 20px); + margin-left: 0; +} + +.popout-chat .live-chat { + height: calc(100vh); padding: 10px; border: unset; border-radius: unset; @@ -7,4 +15,4 @@ .popout-chat .live-chat .messages { overflow: hidden; -} \ No newline at end of file +} diff --git a/src/pages/chat-popout.tsx b/src/pages/chat-popout.tsx index f9275d3..86f07d7 100644 --- a/src/pages/chat-popout.tsx +++ b/src/pages/chat-popout.tsx @@ -4,13 +4,18 @@ import { useParams } from "react-router-dom"; import { parseNostrLink } from "@snort/system"; export function ChatPopout() { - const params = useParams(); - const link = parseNostrLink(params.id!); + const params = useParams(); + const link = parseNostrLink(params.id!); - return
- + return ( +
+
-} \ No newline at end of file + ); +} diff --git a/src/pages/layout.css b/src/pages/layout.css index f55f354..ce914b3 100644 --- a/src/pages/layout.css +++ b/src/pages/layout.css @@ -20,10 +20,24 @@ grid-template-columns: 1fr; } +.popout-chat { + display: grid; + grid-template-areas: + "main-content"; + grid-template-rows: 1fr; + grid-template-columns: 1fr; + height: 100vh; + gap: 0; +} + .live-chat { max-height: calc(100vh - 385px); } +.popout-chat .live-chat { + max-height: unset; +} + @media (min-width: 768px) { .video-content video { height: calc(100vh - 64px); diff --git a/src/pages/layout.tsx b/src/pages/layout.tsx index 5a34653..0ee5247 100644 --- a/src/pages/layout.tsx +++ b/src/pages/layout.tsx @@ -80,7 +80,13 @@ export function LayoutPage() { return (
navigate("/")}>