website icon indicating copy to clipboard operation
website copied to clipboard

Line wrapping toggle not working

Open aniravi24 opened this issue 2 years ago • 3 comments

image

The toggle on the top right of the code block to line wrap doesn't do anything. Potentially due to the custom TS snippets we use with twoslash.

aniravi24 avatar Apr 26 '23 17:04 aniravi24

Yea this is an issue with the custom TS snippets (i.e. problem with shiki-twoslash). Will need to investigate further how to fix it.

IMax153 avatar Apr 26 '23 21:04 IMax153

The issue seems to be that when the button is clicked, the click handler is indeed applying the proper dataset attribute to the DOM, but the styles that are supposed to be applied when the button is clicked are not having the intended effect.

So more likely than not some shiki CSS is probably overriding the word wrap behavior that is supposed to be applied when the button is clicked.

IMax153 avatar Apr 26 '23 22:04 IMax153

I wonder if twoslash.css could have something added in it that would allow this to apply correctly.

aniravi24 avatar Apr 27 '23 02:04 aniravi24