File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,9 @@ import { useShouldAdapt } from '../lib/useShouldAdapt';
8
8
import { useConfig } from './ConfigContext' ;
9
9
import { LoopVideoPlayer } from './LoopVideoPlayer' ;
10
10
11
- const videoContainerStyles = ( height : number , width : number ) => css `
11
+ const videoContainerStyles = css `
12
12
z-index : ${ getZIndex ( 'loop-video-container' ) } ;
13
13
position : relative;
14
- height : ${ height } px;
15
- width : ${ width } px;
16
14
` ;
17
15
18
16
type Props = {
@@ -150,11 +148,7 @@ export const LoopVideo = ({
150
148
const AudioIcon = isMuted ? SvgAudioMute : SvgAudio ;
151
149
152
150
return (
153
- < div
154
- className = "loop-video-container"
155
- ref = { setNode }
156
- css = { videoContainerStyles ( height , width ) }
157
- >
151
+ < div ref = { setNode } css = { videoContainerStyles } >
158
152
< LoopVideoPlayer
159
153
src = { src }
160
154
videoId = { videoId }
You can’t perform that action at this time.
0 commit comments