Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix video having black border on top due to regression from #2608 (#3392
)

The combination of object-fit, relative position 50% from top and translating it
back upwards 50% is what allows us to crop the video properly, so it needs to
be +50%-50%
  • Loading branch information
Gargron committed May 28, 2017
1 parent 0e20de9 commit 3fa8512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/styles/components.scss
Expand Up @@ -3395,7 +3395,7 @@ button.icon-button.active i.fa-retweet {
object-fit: cover;
position: relative;
top: 50%;
transform: translateY(-35%);
transform: translateY(-50%);
width: 100%;
z-index: 1;
}
Expand Down

0 comments on commit 3fa8512

Please sign in to comment.