Skip to content

Commit

Permalink
Fix bug with stream chat not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
hzrd149 committed Oct 11, 2023
1 parent 56ccdd7 commit c635b2b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/polite-trees-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"nostrudel": patch
---

Fix bug with stream chat not showing on chromium based browsers
1 change: 0 additions & 1 deletion src/components/live-video-player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export function LiveVideoPlayer({
autoPlay={autoPlay}
poster={poster}
muted={muted}
style={{ maxHeight: "100%", maxWidth: "100%", width: "100%" }}
{...props}
/>
);
Expand Down
4 changes: 3 additions & 1 deletion src/views/streams/stream/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,13 @@ function DesktopStreamPage({ stream }: { stream: ParsedStream }) {
<StreamDebugButton stream={stream} variant="ghost" />
<Button onClick={() => setShowChat((v) => !v)}>{showChat ? "Hide" : "Show"} Chat</Button>
</Flex>
<Flex gap="2" maxH="calc(100vh - 4rem)">
<Flex gap="2" maxH="calc(100vh - 4rem)" overflow="hidden">
<LiveVideoPlayer
stream={stream.streaming || stream.recording}
autoPlay={!!stream.streaming}
poster={stream.image}
// NOTE: width=0 is used for chromium browser to stop the video element from pushing the chat off screen
w={0}
flexGrow={1}
mx="auto"
/>
Expand Down

0 comments on commit c635b2b

Please sign in to comment.