I had this fixed but then broke it somehow, can someone perhaps see if they can spot where in CSS I can get images uploaded that are over 1400px in width to auto size and not be cut off.
I had this in CSS which worked 100%
body .cooked img:not(.thumbnail) {
width: auto;
height: auto;
display: block;
max-width: 900px;
}
until I changed it to the following (adding .emoji) as emojis were displaying big. That worked for fixing the big emoji’s but broke the image resizing of large images again.
body .cooked img:not(.thumbnail .emoji) {
width: auto;
height: auto;
display: block;
max-width: 900px;
max-height: 900px;
}
If I inspect the element in Chrome it shows that this is where it is getting it’s CSS from
#reply-control .d-editor-preview img:not(.thumbnail), .cooked img:not(.thumbnail) {
max-width: 1200px;
max-height: 1200px;
}
However trying to override that with
body #reply-control .d-editor-preview img:not(.thumbnail .emoji), .cooked img:not(.thumbnail .emoji) {
width: auto;
height: auto;
display: block;
max-width: 900px;
max-height: 900px;
}
has no effect. I’m a bit stumped now.


