Skip to content

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

Fix embedded status bar being cut off (#3352)

Patrick Bollinger800cceb77bfc
diff --git a/web/components/video/OwncastPlayer/OwncastPlayer.module.scss b/web/components/video/OwncastPlayer/OwncastPlayer.module.scss
index 0b0e5bc2fc..0dc225d1cd 100644
--- a/web/components/video/OwncastPlayer/OwncastPlayer.module.scss
+++ b/web/components/video/OwncastPlayer/OwncastPlayer.module.scss
@@ -30,8 +30,3 @@
grid-row: 1;
}
}
-
-.embedded {
- height: 96vh; // Leave room for the status bar
- max-height: unset;
-}
diff --git a/web/components/video/OwncastPlayer/OwncastPlayer.tsx b/web/components/video/OwncastPlayer/OwncastPlayer.tsx
index 2794bdfad3..c6d434b89d 100644
--- a/web/components/video/OwncastPlayer/OwncastPlayer.tsx
+++ b/web/components/video/OwncastPlayer/OwncastPlayer.tsx
@@ -29,7 +29,6 @@ export type OwncastPlayerProps = {
initiallyMuted?: boolean;
title: string;
className?: string;
- embedded?: boolean;
};
export const OwncastPlayer: FC<OwncastPlayerProps> = ({
@@ -38,7 +37,6 @@ export const OwncastPlayer: FC<OwncastPlayerProps> = ({
initiallyMuted = false,
title,
className,
- embedded = false,
}) => {
const VideoSettingsService = useContext(VideoSettingsServiceContext);
const playerRef = React.useRef(null);
@@ -301,10 +299,7 @@ export const OwncastPlayer: FC<OwncastPlayerProps> = ({
/>
)}
>
- <div
- className={classNames(styles.container, className, embedded && styles.embedded)}
- id="player"
- >
+ <div className={classNames(styles.container, className)} id="player">
{online && (
<div className={styles.player}>
<VideoJS options={videoJsOptions} onReady={handlePlayerReady} aria-label={title} />
diff --git a/web/pages/embed/video/VideoEmbed.module.scss b/web/pages/embed/video/VideoEmbed.module.scss
index 443403f8d0..701d1f5da5 100644
--- a/web/pages/embed/video/VideoEmbed.module.scss
+++ b/web/pages/embed/video/VideoEmbed.module.scss
@@ -1,8 +1,6 @@
.onlineContainer {
- height: 96vh;
+ height: 100vh;
background-color: var(--theme-color-components-video-status-bar-background);
-
- @media only screen and (width <= 768px) {
- height: 100vh;
- }
+ display: flex;
+ flex-direction: column;
}
diff --git a/web/pages/embed/video/index.tsx b/web/pages/embed/video/index.tsx
index 89084e38eb..6b2b7893fc 100644
--- a/web/pages/embed/video/index.tsx
+++ b/web/pages/embed/video/index.tsx
@@ -79,7 +79,6 @@ export default function VideoEmbed() {
online={online}
initiallyMuted={initiallyMuted}
title={streamTitle || name}
- embedded
/>
<Statusbar
online={online}