瀏覽代碼

Fix thumbnail not filling entire space sometimes (#6709)

master
Eugen Rochko 6 年之前
committed by GitHub
父節點
當前提交
11697d6894
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 6 行新增4 行删除
  1. +6
    -4
      app/javascript/mastodon/components/media_gallery.js

+ 6
- 4
app/javascript/mastodon/components/media_gallery.js 查看文件

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


Loading…
取消
儲存