You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Properly maintain aspect ratio of inline images (#7503)
This commit is contained in:
committed by
GitHub
parent
5cfb046816
commit
3c1ce77d48
@ -264,7 +264,8 @@ describe('GroupView', function() {
|
||||
|
||||
const imgSrc = "https://my.home.server/_matrix/media/r0/thumbnail/someimageurl" +
|
||||
"?width=800&height=600&method=scale";
|
||||
expect(longDescElement.innerHTML).toContain('<img src="' + imgSrc + '">');
|
||||
expect(longDescElement.innerHTML).toContain('<img src="' + imgSrc + '" ' +
|
||||
'style="max-width:800px;max-height:600px">');
|
||||
});
|
||||
|
||||
httpBackend
|
||||
|
Reference in New Issue
Block a user