jdf / processing-py-site

Site for processing.py.
MIT License
197 stars 52 forks source link

Text area too wide for the right shift reference entry #183

Open tabreturn opened 3 years ago

tabreturn commented 3 years ago

The text bursts out of its 'frame' here: https://py.processing.org/reference/rightshift.html

Probably requires a small CSS/HTML fix. I'll look at it later.

FeXd commented 3 years ago

This happens on many pages, and looks to be caused by the <pre> tag default broswer styling.

I'm not super up to date on my CSS, but adding the style white-space: pre-wrap; to <pre> tags looks like a possible fix. Not sure about the browser support tho.

tabreturn commented 3 years ago

Thanks, @FeXd. Best just to break the offending comment across two lines, then?

FeXd commented 3 years ago

I just took a look at the main processing site to see what they do, and the same issue exists. They just have shorter examples.

So @tabreturn I do think the change you suggested of breaking the comment across two lines is the way to go. I might take some time to audit other pages for similar issues.