Skip to content

Image aspect ratio not respected in Lecture description #7889

Open

Description

@MarkWieczorek

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.

version 3.3.14

Activity

  1. ThiefMaster commented on Nov 12, 2026

    @ThiefMaster
    Member

    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.

  2. MarkWieczorek commented on Nov 12, 2026

    @MarkWieczorek
    Author

    Here is the event:
    https://solarsystem.events/event/23/

    And here is the html source

    <p><strong>Register</strong></p>
    <p><a href="https://www.zoomgov.com/webinar/register/WN_5y4h2D5uSJayzH_CNiRNjg#/registration">https://www.zoomgov.com/webinar/register/WN_5y4h2D5uSJayzH_CNiRNjg#/registration</a></p>
    <p><img src="/event/23/attachments/6/16/Moon_Joy_S4_2026-10-20-1-2048x1152.png" alt="" width="2048" height="1152"></p>
    
  3. zuhairkhalid229 commented on Nov 17, 2026

    @zuhairkhalid229

    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.

  4. added a commit that references this issue on Nov 28, 2026
    1df82da
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions