about summary refs log tree commit diff
path: root/app/javascript/mastodon/components/media_gallery.js
diff options
context:
space:
mode:
authorJenkins <jenkins@jenkins.ninjawedding.org>2018-02-19 15:17:14 +0000
committerJenkins <jenkins@jenkins.ninjawedding.org>2018-02-19 15:17:14 +0000
commit1445ba17033cdfdd21d0999f65267754af6344af (patch)
tree4919ecd746c8dec4be33af47d83f11cec098cf69 /app/javascript/mastodon/components/media_gallery.js
parent3d033a468748338b6036cb24bb00ea4e88656ae6 (diff)
parent66105929e07fc7ddbdb8b66696b9ce1ed5d25957 (diff)
Merge remote-tracking branch 'tootsuite/master' into glitchsoc/master
Diffstat (limited to 'app/javascript/mastodon/components/media_gallery.js')
-rw-r--r--app/javascript/mastodon/components/media_gallery.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/javascript/mastodon/components/media_gallery.js b/app/javascript/mastodon/components/media_gallery.js
index 00943e205..a3ffc45ea 100644
--- a/app/javascript/mastodon/components/media_gallery.js
+++ b/app/javascript/mastodon/components/media_gallery.js
@@ -227,12 +227,8 @@ export default class MediaGallery extends React.PureComponent {
     const style = {};
 
     if (this.isStandaloneEligible()) {
-      if (!visible && width) {
-        // only need to forcibly set the height in "sensitive" mode
+      if (width) {
         style.height = width / this.props.media.getIn([0, 'meta', 'small', 'aspect']);
-      } else {
-        // layout automatically, using image's natural aspect ratio
-        style.height = '';
       }
     } else {
       // crop the image