You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Image aspect ratio not respected in Lecture description #7889
Describe the bug
I created a lecture, and as part of the description I added an image using the insert image button in the text editor. After uploading the image, the dialog box correctly showed the size of the image, and the "lock" was closed so that the aspect ratio would remain the same. However, in display mode, the image aspect ratio is not respected and is modifed to fill the page.
To Reproduce
See above
Expected behavior
The image aspect ratio should not be modified with viewing a lecture in display mode.
Please share the image (or another one where this happens). Ideally also post the HTML source of the description (you can get it by using the edit source button in the wysiwyg editor) so we know what's in there.
I'd like to fix this. The <img> in the description has width="2048" height="1152", and .editor-output img (indico/web/client/styles/editor-output.scss) only sets max-width: 100%. So the width shrinks to the box while the height attribute keeps it 1152px tall: in Chrome an 800px-wide box shows it at 800×1152 instead of 800×450. Adding height: auto there keeps the ratio. The .note-text img rule for minutes in _meetings.scss has the same problem, so I'd fix both. I'll open a PR.
Activity
ThiefMaster commentedon Nov 12, 2026
Please share the image (or another one where this happens). Ideally also post the HTML source of the description (you can get it by using the edit source button in the wysiwyg editor) so we know what's in there.
MarkWieczorek commentedon Nov 12, 2026
Here is the event:
https://solarsystem.events/event/23/
And here is the html source
zuhairkhalid229 commentedon Nov 17, 2026
I'd like to fix this. The
<img>in the description haswidth="2048" height="1152", and.editor-output img(indico/web/client/styles/editor-output.scss) only setsmax-width: 100%. So the width shrinks to the box while theheightattribute keeps it 1152px tall: in Chrome an 800px-wide box shows it at 800×1152 instead of 800×450. Addingheight: autothere keeps the ratio. The.note-text imgrule for minutes in_meetings.scsshas the same problem, so I'd fix both. I'll open a PR.ci: fork-only stylelint for indico#7889
Fix stretched images in rich-text output