-
Notifications
You must be signed in to change notification settings - Fork 0
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
Alerts stretch images #10
Comments
Note that I think the inline style is coming from the WYSIWYG editor & not from Sahana. |
Devin has requested these "stubs" be limited in height. How is best to implement the following:
I can set a max-height to the body of the box, which would could cut off the content with CSS Another option would be to set a Finally we could do something with javascript. Perhaps @flavour you can sip them on the controller side? Then adding a class we could style them. Thoughts? |
I'm not sure how we can snip server-side to a certain # of px, but we can certainly snip & experiment with how much...can you give a suggestion for how much to snip? |
JS could measure the hight can add a class that would hide the overflow and set a style that would indicate that. I think the word count probably isn't going to work due to images (and other rich text styling). I'll see what I can do with JS. |
Agree that JS approach seems best...this needs to be client-side. |
Can we strip images out in the stubs? Does that enable us to solve this problem? |
I've come up with a CSS based solution that also allows us to maintain consistent height for all alert and event elements. Once it's up on the server we should test then close the issue. |
There is still the issues that images are getting squished! Adding css .card .desc {
max-width: 100% !important;
height: auto;
} would fix the issue, however I'd rather not do this! @flavour is there any way to prevent the system from applying width and height attributes to the element? |
See my 1st comment on this thread |
whoops, yeah. What's the directive here? Should I update the editor, test it, and make a pull request? |
Sounds right, if you can :) |
I've updated to Is there another place where this is configured? Also, the download page has options to download basic, standard, and full. I've tried both basic and standard, do you know which we use? |
I guess we use basic + necessary plugins (check the plugins folder...we have 15 currently) I'm not sure if the API changed at all from 4.5.x to 4.7.x? |
Nope, syntax appears to be the same and valid. I've pushed the updated code into my eden repo under a new branch if you want to check it out: https://github.com/dhornbein/eden/tree/ckeditor |
I did the upgrade...turned out to be the 'Standard' install + these 2 plugins:
So now you need to see if the problem is still there (I would guess it is) & then figure out where in the code the change should be made. Can then be hacked into place - with clear comments. |
.alert-card
elements (and others I would imagine) with images are stretching those images. The image size is set as an inline style thus can't be overwritten without!important
flags, which would be best to avoid.The text was updated successfully, but these errors were encountered: