Skip to content

Commit d31687e

Browse files
committed
fix: copied text includes line break
1 parent 779fe56 commit d31687e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/MDX/CodeBlock.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@ const Pre = styled.pre`
2929
}
3030
`;
3131

32-
const Line = styled.div`
33-
display: flex;
34-
`;
32+
const Line = styled.div``;
3533

3634
const LineNo = styled.span`
35+
display: inline-block;
3736
min-width: 30px;
3837
padding-right: 1em;
3938
text-align: right;

0 commit comments

Comments
 (0)