RapiDoc icon indicating copy to clipboard operation
RapiDoc copied to clipboard

Word wrap in response like in example

Open joshdavidson613 opened this issue 4 months ago • 0 comments

In the response example section, long strings like tokens wrap correctly:

Image

However in the response when the user executes the endpoint doesn't come word-wrapped:

Image

The culprit seems to be the hard coding of white-space: pre and overflow: auto in the <pre> container of the response:

<pre style="white-space:pre; min-height:50px; height:var(--resp-area-height, 400px); resize:vertical; overflow:auto">

I can't seem to find a way to overwrite these hard coded style settings via css or even a timed js script as the item is in the shadow-dom and doesn't seem to come up via a JavaScript select. Any help resolving this would be appreciated.

Thanks.

joshdavidson613 avatar Aug 26 '25 14:08 joshdavidson613