Skip to content

Commit bd973a3

Browse files
committed
Remove height, width from video container.
1 parent 702589c commit bd973a3

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

dotcom-rendering/src/components/LoopVideo.importable.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@ import { useShouldAdapt } from '../lib/useShouldAdapt';
88
import { useConfig } from './ConfigContext';
99
import { LoopVideoPlayer } from './LoopVideoPlayer';
1010

11-
const videoContainerStyles = (height: number, width: number) => css`
11+
const videoContainerStyles = css`
1212
z-index: ${getZIndex('loop-video-container')};
1313
position: relative;
14-
height: ${height}px;
15-
width: ${width}px;
1614
`;
1715

1816
type Props = {
@@ -150,11 +148,7 @@ export const LoopVideo = ({
150148
const AudioIcon = isMuted ? SvgAudioMute : SvgAudio;
151149

152150
return (
153-
<div
154-
className="loop-video-container"
155-
ref={setNode}
156-
css={videoContainerStyles(height, width)}
157-
>
151+
<div ref={setNode} css={videoContainerStyles}>
158152
<LoopVideoPlayer
159153
src={src}
160154
videoId={videoId}

0 commit comments

Comments
 (0)