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

LPD-42437 Sets a default width in px rather than % for images with no width #215

Merged
merged 2 commits into from
Nov 26, 2024

Conversation

antonio-ortega
Copy link
Member

Hi,

A while ago, we fixed the case when images with no specified width (some SVG files, for example) where not rendered inside the editor. Our way to fix this, as you can see in Patch 17, was to set width:100% for images.

However, that's causing some issues when we try to align the image as you can read in LPD-42473.

So instead of assigning a default width based on percentage I'm doing it based on a fix width, 150px, which might sound arbitrary but I took it from this pull request, which never got committed because the sender didn't make changes requested but the idea of a fix 150px width for this kind of images seemed ok to ckeditor's developers.

Let me know if you have further questions.

Thanks.

… Previously we were applying width:100% but that was messing up with aliging the image
This commit autogenerated with "./ck.sh".
Copy link
Member

@markocikos markocikos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@antonio-ortega LGTM! ✨

Just a sidenote: you don't need to rebuild artifacts with each PR. We can just do it once before release, as a part of release.

@markocikos markocikos merged commit 7384c50 into liferay:master Nov 26, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants