Fix thumbnail not filling entire space sometimes (#6709)

lolsob-rspec
Eugen Rochko 2018-03-09 11:33:05 +01:00 committed by GitHub
parent 8b18784116
commit 15ec9431be
1 changed files with 6 additions and 4 deletions

View File

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