Skip to content

Mobile device preview does not initially apply auto-width on images #120

@nharraud

Description

@nharraud

Hello,

I report this issue here as I don't see a repository for the generic editor. I apologize if this is not the right place.

Editor version: 1.243.0
Editor source: https://editor.unlayer.com/1.243.0/editor.html

As you can see in the recording below, the mobile device preview automatically selects "auto" width by default for images. Initially the image is not stretched. If you disable auto-width and re-enable it, the image is stretched to take the full width.

Screen.Recording.2025-04-03.at.17.59.26.mov

I see that the generated HTML actually has the following CSS for the mobile media query:

.u-row .u-col img {
  max-width: 100% !important;
}

Thus the stretched version is the correct one, not the initial non-stretched display.

I sadly could not find any documentation regarding the "auto" width. Could you please confirm that it will always stretch the image on the whole width on mobile devices? We would like to update our own documentation to reflect this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions