Skip to content
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

Image field zooms horizontal images too large in admin - overflows field boundaries #2028

Open
donatasben opened this issue Jan 16, 2025 · 1 comment

Comments

@donatasben
Copy link

donatasben commented Jan 16, 2025

Hi,
When I use image fields and upload very wide aspect ratio images, they are zoomed too much on edit page load for fields that have width configured narrower than 100% of page edit form. The field uses gridMode=left.

Maybe the inputfield could detect, calculate current field width and adjust image initial zoom amount to fit the wider images within the fields current width? It should also take into account the respsonsive behaviour for smaller screens.

Examples of the issue - the right image fields are configured to be like columnWidth=30 of the width:
Image
Image

@donatasben donatasben changed the title Image field zooms small SVGs too large in admin - overflows field boundaries Image field zooms horizontal images too large in admin - overflows field boundaries Jan 16, 2025
@ryancramerdesign
Copy link
Member

@donatasben Is it just in the list mode where you get the issue? (where it displays just 1 image per line). Can you attach a copy of an image where you are observing the issue?

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

No branches or pull requests

3 participants