Skip to content

Commit

Permalink
fix(FEC-10235): Play/Pause button is not accurately centered in small…
Browse files Browse the repository at this point in the history
… player (#519)

Since #398. 
Use `transform: translate(-50%, -50%)` and `white-space: nowrap` insteadof hardcoded `margin`
  • Loading branch information
yairans committed Jun 25, 2020
1 parent 6326ee7 commit f2f608f
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/components/playback-controls/_playback-controls.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,10 @@
position: absolute;
top: 50%;
left: 50%;
margin-top: -32px;
margin-left: -48px;
}

.player.playlist {
.player-gui > .playback-controls,
.center-playback-controls {
margin-left: -144px;
}
transform: translate(-50%, -50%);
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
white-space: nowrap;
}

.bottom-bar .playback-controls {
Expand Down

0 comments on commit f2f608f

Please sign in to comment.