Skip to content

Commit

Permalink
Fix: Center video element and maintain its size and ratio (#995)
Browse files Browse the repository at this point in the history
  • Loading branch information
jstoffan authored May 2, 2019
1 parent adc2064 commit dd7a6ec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/lib/viewers/media/Dash.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
video {
cursor: none;
display: block;
margin-left: auto;
margin-right: auto;
max-height: 100%;
max-width: 100%;
width: 100%;
Expand Down
2 changes: 2 additions & 0 deletions src/lib/viewers/media/MP4.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
video {
cursor: none;
display: block;
margin-left: auto;
margin-right: auto;
max-height: 100%;
max-width: 100%;
width: 100%;
Expand Down
2 changes: 0 additions & 2 deletions src/lib/viewers/media/_mediaBase.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
}

.bp-media-container {
display: flex;
justify-content: center;
min-width: 300px; // Prevent media controls from overflowing on small screens
outline: 0 none;
position: relative;
Expand Down

0 comments on commit dd7a6ec

Please sign in to comment.