openwhisk-website icon indicating copy to clipboard operation
openwhisk-website copied to clipboard

Documentation scrolls horz. on small media

Open pritidesai opened this issue 7 years ago • 2 comments

There should be a better way to wrap the Content text, but allow for scrolling only on the code samples. That is, you should not need to scroll on a mobile phone to read the majority of the developer/operator/contrib. documentation.

pritidesai avatar Aug 02 '18 19:08 pritidesai

After examining and playing with this, it will be very hard to "scroll" as the syntax highlighting code adds several HTML tags that we do not easily control. Specifically, it appears that using any "pre" (i.e., <pre>) tag seems to void any layout... that is, the width of any <pre> container is respected regardless of any scroll options selected.

mrutkows avatar Aug 20 '18 18:08 mrutkows

The solution MIGHT involve creating our own "pre" tag to replace/override the built in HTML one where we can control the layout. This would be a lot of work for little benefit. We COULD close this issue, but perhaps some eager/smart person in the future may want to take up this challenge.

mrutkows avatar Aug 20 '18 18:08 mrutkows