diff --git a/beta/src/components/MDX/CodeBlock/CodeBlock.tsx b/beta/src/components/MDX/CodeBlock/CodeBlock.tsx index 0b44734a..b7894e53 100644 --- a/beta/src/components/MDX/CodeBlock/CodeBlock.tsx +++ b/beta/src/components/MDX/CodeBlock/CodeBlock.tsx @@ -146,7 +146,7 @@ const CodeBlock = function CodeBlock({ finalOutput.push(
+ className={'cm-line ' + (highlightedLines.get(lineIndex) ?? '')}> {lineOutput}
@@ -161,7 +161,7 @@ const CodeBlock = function CodeBlock({ finalOutput.push(
+ className={'cm-line ' + (highlightedLines.get(lineIndex) ?? '')}> {lineOutput}
); @@ -177,8 +177,8 @@ const CodeBlock = function CodeBlock({
-
-              
+            
+              
                 {finalOutput}
               
             
diff --git a/beta/src/styles/sandpack.css b/beta/src/styles/sandpack.css index e1ca99e3..fba8c6f7 100644 --- a/beta/src/styles/sandpack.css +++ b/beta/src/styles/sandpack.css @@ -230,6 +230,7 @@ html.dark .sandpack--playground .sp-overlay { .sandpack--codeblock .cm-line { margin-left: -20px; padding-left: 20px; + padding-right: 20px; } /**