Do not break lines within :option: references
Please cherry-pick the upstream change made in https://github.com/sphinx-doc/sphinx/pull/9929 that resolved https://github.com/sphinx-doc/sphinx/issues/9909.
Thank you for reporting this @marxin.
The problem with white-space: nowrap is that it will break the layout for long .literals.

Maybe we can assume that users will choose to use a block literals for these cases, or we could make the .literal inline-block elements instead. This options requires more testing to make sure nothing breaks and some tweaking to paddings and positionings to make sure the inline-block elements don't shift the line height.
What do you think @agjohnson?
I did some initial testing and the code bellow works without any line shifting. We'd just need to test it for possible edge cases.
