mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Fix player sizing in different viewports. Closes #2360
This commit is contained in:
parent
c352e4a9c1
commit
fb4b0a56cc
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user