Browse Source

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%
closed-social-glitch-2
Eugen Rochko 7 years ago
committed by GitHub
parent
commit
3fa8512474
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/styles/components.scss

+ 1
- 1
app/javascript/styles/components.scss View File

@ -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;
}

Loading…
Cancel
Save