odoc icon indicating copy to clipboard operation
odoc copied to clipboard

main content gets too large when there is a long line in a code block

Open EmileTrotignon opened this issue 2 months ago • 1 comments

As seen here: https://ocaml-ppx.github.io/ppxlib/ppxlib/driver.html#:~:text=the%20next%20phase.-,The%20Global%20T[%E2%80%A6]tion%27s%20name.,-The%20Last%20Instrumentation

Either we enable wrapping in code block, or a sub-scrollbar. Horizontal scrolling on the whole is not good.

EmileTrotignon avatar Oct 23 '25 07:10 EmileTrotignon

It only happens when you open the "Standalone driver" folding thing

EmileTrotignon avatar Oct 23 '25 07:10 EmileTrotignon

Ah that sounds familiar. I wonder if this fixes it? https://github.com/jonludlam/odoc/commit/3b8b9258e4cc6f6e5c9dfac50188ba87e82ca72e

jonludlam avatar Nov 05 '25 16:11 jonludlam

It does fix the issue but not in the best way. With the example I shown, its ok to have wrapping, but that might not always be the case. A scrollbar would be better in my opinion.

EmileTrotignon avatar Nov 05 '25 16:11 EmileTrotignon