prompty icon indicating copy to clipboard operation
prompty copied to clipboard

Funky spacing in sample code in documentation website

Open pamelafox opened this issue 9 months ago • 1 comments

Really strange spacing in the imports: Image

I checked the code, and it doesn't have the spacing, so I assume it's the CSS or highlighter library used.

pamelafox avatar Feb 13 '25 23:02 pamelafox

I inspected this and it does appear to be styling related. Specifically there is seems to be an inherited white-space attribute that causes this issue. Unchecking this (in browser to test) fixes the alignment. Not sure which library does this (yet) but leaving this for debug.

Before

Image

After

Image

nitya avatar Mar 16 '25 15:03 nitya