We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e097ce2 + 6ac2b96 commit c0836c7Copy full SHA for c0836c7
packages/mdx/src/smooth-code/code-tween.tsx
@@ -192,13 +192,16 @@ function Wrapper({
192
}) {
193
return (
194
<div
195
+ className="ch-code-wrapper"
196
{...htmlProps}
197
style={{
198
margin: 0,
199
padding: 0,
200
position: "relative",
201
// using this instead of <pre> because https://github.com/code-hike/codehike/issues/120
202
whiteSpace: "pre",
203
+ // to avoid resets using "border-box" that break the scrollbar https://github.com/code-hike/codehike/issues/240
204
+ boxSizing: "content-box",
205
...style,
206
...htmlProps?.style,
207
}}
0 commit comments