mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-01 04:16:24 -05:00
Centering video player in VideoPage.
This commit is contained in:
parent
3906223844
commit
c5e86c19e8
2 changed files with 6 additions and 0 deletions
|
|
@ -245,3 +245,8 @@ textarea.otp {
|
||||||
.divider.inverted {
|
.divider.inverted {
|
||||||
color: rgb(255, 255, 255, 0.6) !important;
|
color: rgb(255, 255, 255, 0.6) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.video-player {
|
||||||
|
display: block;
|
||||||
|
margin: 0 auto; /* Center the video horizontally */
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -350,6 +350,7 @@ function VideoPage({videoFile, prevFile, nextFile, fetchVideo, ...props}) {
|
||||||
</Container>
|
</Container>
|
||||||
|
|
||||||
<video controls
|
<video controls
|
||||||
|
class='video-player'
|
||||||
autoPlay={props.autoplay !== undefined ? props.autoplay : true}
|
autoPlay={props.autoplay !== undefined ? props.autoplay : true}
|
||||||
poster={posterUrl}
|
poster={posterUrl}
|
||||||
id="player"
|
id="player"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue