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