Fix player sizing in different viewports. Closes #2360
This commit is contained in:
@@ -4,12 +4,8 @@
|
|||||||
display: grid;
|
display: grid;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
justify-items: center;
|
justify-items: center;
|
||||||
height: 78vh;
|
max-height: 75vh;
|
||||||
|
aspect-ratio: 16 / 9;
|
||||||
@include screen(tablet) {
|
|
||||||
aspect-ratio: 16 / 9;
|
|
||||||
height: unset;
|
|
||||||
}
|
|
||||||
|
|
||||||
.player,
|
.player,
|
||||||
.poster {
|
.poster {
|
||||||
|
|||||||
@@ -33,9 +33,9 @@ export const VideoPoster: FC<VideoPosterProps> = ({ online, initialSrc, src: bas
|
|||||||
<CrossfadeImage
|
<CrossfadeImage
|
||||||
src={src}
|
src={src}
|
||||||
duration={duration}
|
duration={duration}
|
||||||
objectFit="cover"
|
objectFit="contain"
|
||||||
|
height="auto"
|
||||||
width="100%"
|
width="100%"
|
||||||
height="100%"
|
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user