mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix thumbnail not filling entire space sometimes (#6709)
This commit is contained in:
parent
675b8fea53
commit
11697d6894
@ -168,11 +168,13 @@ class Item extends React.PureComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (originalWidth > originalHeight) {
|
if (originalWidth > originalHeight) {
|
||||||
imageStyle.height = '100%';
|
imageStyle.height = '100%';
|
||||||
imageStyle.width = 'auto';
|
imageStyle.width = 'auto';
|
||||||
|
imageStyle.minWidth = '100%';
|
||||||
} else {
|
} else {
|
||||||
imageStyle.height = 'auto';
|
imageStyle.height = 'auto';
|
||||||
imageStyle.width = '100%';
|
imageStyle.width = '100%';
|
||||||
|
imageStyle.minHeight = '100%';
|
||||||
}
|
}
|
||||||
|
|
||||||
imageStyle.top = vShift;
|
imageStyle.top = vShift;
|
||||||
|
Loading…
Reference in New Issue
Block a user