-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Remove the image block inline style max-width #5747
Remove the image block inline style max-width #5747
Conversation
There's been a lot of back and forth about these, not sure about the last state of the discussion about these styles. cc @iseulde @jasmussen |
I'd go with this solution and themers can more easily overwrite the styles. |
I'm a bit confused by the original approach in general:
To me, it's theme territory. If that means as overridable style at minimum, changes here seem reasonable enough. But it's backwards-incompatible. I expect it could invalidate existing floated blocks. Might need deprecated migration. |
I don't think that's important in this point. One option is to add the same style rule in the front-end stylesheet. |
@samikeijonen Isn't this PR already part of the front-end stylesheet due to the added rules in the style.scss? @aduth What makes you fear the conflict with floated blocks? The rules should be consistent, but just less specific. (Or down in hierarchy by 2 levels.) |
@Luehrsen Ah sorry, didn't noticed that. |
The conflict is the invalidation.
|
Apologies for duplicating work, but I just created a PR that essentially does the same as this one, but a few other things, in #5973. The end goal is the same. I don't know which branch is best to proceed with, this one or my branch? I will be sure to add props, @Luehrsen, if we go with the branch I created. What do you think? Any thoughts, @aduth? |
@jasmussen As long as it gets done, I'm fine with any branch. :D |
As similar things seem to be going on in different branches, lets close this for now. We can always reopen. |
Description
As written in #5745 the hardcoded max-width 50% are sometimes problematic if your content width != 100%.
How Has This Been Tested?
This has been tested locally.
Screenshots (jpeg or gifs if applicable):
Types of changes
Removed the 50% from the block markup.
ToDo:
Checklist: