apify-docs icon indicating copy to clipboard operation
apify-docs copied to clipboard

Wrap text in CLI command reference to avoid the horizontal scrollbars

Open jancurn opened this issue 2 years ago • 1 comments

When you look e.g. to https://docs.apify.com/cli/docs/reference#apify-pull-actorid, the text of commands is hidden under horizontal scroll bars:

Screenshot 2023-12-05 at 11 32 17

That's a pretty bad developer experience...

jancurn avatar Dec 05 '23 10:12 jancurn

FYI there is a button for this already when you hover over the code block:

image

Docusaurus currently does not allow to control the default globally (and I'd argue it would be a good thing to do for all the code blocks).

https://github.com/facebook/docusaurus/discussions/7769 https://github.com/facebook/docusaurus/issues/7875

I guess we could introduce a new custom component that would always wrap and use that selectively.

B4nan avatar Dec 07 '23 13:12 B4nan