mirror of
https://github.com/kikobar/mastodon.git
synced 2024-11-18 21:27:41 +00:00
Fix thumbnail not filling entire space sometimes (#6709)
This commit is contained in:
parent
675b8fea53
commit
11697d6894
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue