pkgdown
pkgdown copied to clipboard
Tweak word-wrap rule for preventing horizontal scrollbar?
On small devices e.g. IPhone, the article I edited gets a horizontal scrollbar which hides the toggle button (well one can scroll to find it).
Something like
body {
word-wrap: break-word;
}
would work.
Maybe such a long word will never happen though. It's a courtesy from cat ipsum. :sweat_smile:
Probably something like:
main {
overflow-wrap: break-word;
hyphens: auto;
}
overflow-wrap
is the official name, and hyphens
will automatically add a -
in most browsers. Probably want to scope this to the main content only, because I'm not sure what the consequences of changing this on bootstrap nav stuff might be
I can't request that you review your own PR, but please take a look at my proposal.
This looks good!