-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
How to avoid this white space problem using code block pro ? #262
Comments
It's designed to scroll like that intentionally. I'm going to look into adding it as an option but its a bit complicated to get it working with all the other features (like line highlighting, for example) If you wants to share a link to your site I can look at it. You can also try css like this: div[class*='code-block-pro']:not(.x) pre {
padding-right: 12px !important;
}
div[class*='code-block-pro']:not(.x) pre code {
white-space: normal !important;
} |
Hey Kevin thanks for reply! I tried this custom css ! it works but remove all tab indent of the code. |
In place of "white-space: normal" go here and try out the other options to find the best one. Maybe https://developer.mozilla.org/en-US/docs/Web/CSS/white-space You have some text there that's not simple to break so it might not work. |
Just wanted to confirm that |
What ever the default I have there is what works best. If you to customize it though then you can try one of the other options. |
Hello everyone :)
My JSON example have a large link:
https://pps.whatsapp.net/v/t61.24694-24/323970788_1137981286878828_1882391295127733628_n.jpg?stp=dst-jpg_s96x96&ccb=11-4&oh=01_AdRIhDQmoDnnUAXJdVlRp9eCiVzLdQK5ogchK1GhiSLnAw&oe=6534E077&_nc_sid=000000&_nc_cat=101
And it's causing a horizontal scroll in front end:
But in page builder show correct:
How to fix this?
Thanks
The text was updated successfully, but these errors were encountered: