Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Use vh instead of % to fix storybook rendering of chat container.

Gabe Kangasfceff2e19630
diff --git a/web/components/chat/ChatContainer/ChatContainer.tsx b/web/components/chat/ChatContainer/ChatContainer.tsx
index 7c536fe5dc..2e367078df 100644
--- a/web/components/chat/ChatContainer/ChatContainer.tsx
+++ b/web/components/chat/ChatContainer/ChatContainer.tsx
@@ -102,7 +102,7 @@ export default function ChatContainer(props: Props) {
() => (
<>
<Virtuoso
- style={{ height: 'calc(100% - 110px)', width: 'auto' }}
+ style={{ height: 'calc(100vh - 170px)', width: 'auto' }}
ref={chatContainerRef}
initialTopMostItemIndex={messages.length - 1} // Force alignment to bottom
data={messages}
diff --git a/web/stories/ChatContainer.stories.tsx b/web/stories/ChatContainer.stories.tsx
index 6b4403dd48..fae82b5a57 100644
--- a/web/stories/ChatContainer.stories.tsx
+++ b/web/stories/ChatContainer.stories.tsx
@@ -35,8 +35,8 @@ const AddMessagesChatExample = args => {
</button>
<ChatContainer
messages={chatMessages}
- usernameToHighlight={null}
- chatUserId={null}
+ usernameToHighlight="testuser"
+ chatUserId="testuser"
isModerator={false}
isMobile={false}
/>