1
0
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:
Michael Telatynski
2022-01-10 15:32:06 +00:00
committed by GitHub
parent 5cfb046816
commit 3c1ce77d48
3 changed files with 28 additions and 8 deletions

View File

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