diff --git a/.changeset/silly-knives-kiss.md b/.changeset/silly-knives-kiss.md new file mode 100644 index 0000000000..d1377e3b70 --- /dev/null +++ b/.changeset/silly-knives-kiss.md @@ -0,0 +1,5 @@ +--- +"@react-email/code-block": patch +--- + +fix improper padding on the line numbers diff --git a/packages/code-block/src/code-block.tsx b/packages/code-block/src/code-block.tsx index 9e13dd97fc..ad99e8bafb 100644 --- a/packages/code-block/src/code-block.tsx +++ b/packages/code-block/src/code-block.tsx @@ -95,13 +95,13 @@ export const CodeBlock = React.forwardRef( {tokensPerLine.map((tokensForLine, lineIndex) => (

- {Boolean(props.lineNumbers) && ( + {props.lineNumbers ? ( {lineIndex + 1} - )} + ) : null} {tokensForLine.map((token, i) => (