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

Scale images in mediabrowser and mediapicker #832

Open
burningice2866 opened this issue Jun 20, 2023 · 0 comments
Open

Scale images in mediabrowser and mediapicker #832

burningice2866 opened this issue Jun 20, 2023 · 0 comments

Comments

@burningice2866
Copy link
Contributor

While the CMS tries to do serverside scaling of images when showing them in the mediabrowser and mediapicker to make them fit, this fails for images with a format not supported for serverside resizing.

This can be fixed by adding the following css to the ui-box that contains the image - i believe something like the class .genericview ui|labelbox[image^="/"] ui|labelbody would do

background-size: contain;

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