gearheads
/
mastodon
Archived
2
0
Fork 0

Fix thumbnail not filling entire space sometimes (#6709)

gh/stable
Eugen Rochko 2018-03-09 11:33:05 +01:00 committed by GitHub
parent 675b8fea53
commit 11697d6894
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -170,9 +170,11 @@ class Item extends React.PureComponent {
if (originalWidth > originalHeight) {
imageStyle.height = '100%';
imageStyle.width = 'auto';
imageStyle.minWidth = '100%';
} else {
imageStyle.height = 'auto';
imageStyle.width = '100%';
imageStyle.minHeight = '100%';
}
imageStyle.top = vShift;