neovim.github.io icon indicating copy to clipboard operation
neovim.github.io copied to clipboard

css: request to add `overflow-x: auto` to `.old-help-para`

Open vagreargnatry opened this issue 2 years ago • 3 comments

Hello, could you add overflow-x: auto to .old-help-para? This is the picture's doc link: https://neovim.io/doc/user/lsp.html#lsp-buf Before I add overflow-x: auto to .old-help-para in chrome console, there has horizontal scroll bar and text overflow. May be this line (sorry, I'm not sure): https://github.com/neovim/neovim/blob/master/scripts/gen_help_html.lua#L911

before: before after: after

vagreargnatry avatar Jan 17 '23 08:01 vagreargnatry

pr welcome that implements the idea in https://github.com/neovim/neovim/pull/21644#issuecomment-1372311433

justinmk avatar Jan 17 '23 12:01 justinmk

Could you accpet change white-space: pre to white-space: pre-wrap in .old-help-para and add word-break: break-all to HTML a tag? After reading https://github.com/neovim/neovim/pull/21644 I think this may have a good effect on my laptop.

result

vagreargnatry avatar Jan 18 '23 04:01 vagreargnatry

for this kind of simple change, better submit a PR as we can test on our own machines and if ok then the improvement is a click away.

teto avatar Jan 18 '23 13:01 teto

Partially fixed by https://github.com/neovim/neovim/pull/28678 and https://github.com/neovim/neovim/pull/28755, although being a different solution (wrap instead of scrollbar) against overlap.

wookayin avatar May 16 '24 13:05 wookayin