Selaa lähdekoodia

Fix thumbnail not filling entire space sometimes (#6709)

master
Eugen Rochko 6 vuotta sitten
committed by GitHub
vanhempi
commit
11697d6894
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 muutettua tiedostoa jossa 6 lisäystä ja 4 poistoa
  1. +6
    -4
      app/javascript/mastodon/components/media_gallery.js

+ 6
- 4
app/javascript/mastodon/components/media_gallery.js Näytä tiedosto

@@ -168,11 +168,13 @@ class Item extends React.PureComponent {
}

if (originalWidth > originalHeight) {
imageStyle.height = '100%';
imageStyle.width = 'auto';
imageStyle.height = '100%';
imageStyle.width = 'auto';
imageStyle.minWidth = '100%';
} else {
imageStyle.height = 'auto';
imageStyle.width = '100%';
imageStyle.height = 'auto';
imageStyle.width = '100%';
imageStyle.minHeight = '100%';
}

imageStyle.top = vShift;


Ladataan…
Peruuta
Tallenna