Skip to content

Commit

Permalink
Chore: Move max-width to shared media styles
Browse files Browse the repository at this point in the history
  • Loading branch information
jstoffan committed Apr 23, 2019
1 parent 8ef5422 commit e6083cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/lib/viewers/media/Dash.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
@import 'mediaBase';

.bp-media-container {
display: flex;
justify-content: center;
min-width: 320px; // Prevent media controls from overflowing on small screens
}

.bp-media-dash {
video {
cursor: none;
Expand Down
3 changes: 3 additions & 0 deletions src/lib/viewers/media/_mediaBase.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@
}

.bp-media-container {
display: flex;
justify-content: center;
outline: 0 none;
position: relative;
user-select: none; // Prevents copy paste dialog from appearing on mobile
width: 100%; // Prevent media controls from overflowing on small screens
}

.bp-media-play-button {
Expand Down

0 comments on commit e6083cf

Please sign in to comment.