Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
nharraud opened this issue Apr 4, 2025 · 0 comments
Open

Comments

@nharraud
Copy link

nharraud commented Apr 4, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant