Centering video player in VideoPage.

This commit is contained in:
Roland 2024-08-02 11:56:06 -06:00
parent 3906223844
commit c5e86c19e8
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
2 changed files with 6 additions and 0 deletions

View file

@ -245,3 +245,8 @@ textarea.otp {
.divider.inverted {
color: rgb(255, 255, 255, 0.6) !important;
}
.video-player {
display: block;
margin: 0 auto; /* Center the video horizontally */
}

View file

@ -350,6 +350,7 @@ function VideoPage({videoFile, prevFile, nextFile, fetchVideo, ...props}) {
</Container>
<video controls
class='video-player'
autoPlay={props.autoplay !== undefined ? props.autoplay : true}
poster={posterUrl}
id="player"