Disable selection on code block line numbers (#167)

This commit is contained in:
Lee Robinson 2023-11-26 20:09:15 -06:00 committed by GitHub
commit f9ce97f42a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -128,6 +128,9 @@ const CodeBlock: FC<Props> = memo(({ language, value }) => {
background: 'transparent', background: 'transparent',
padding: '1.5rem 1rem' padding: '1.5rem 1rem'
}} }}
lineNumberStyle={{
userSelect: "none",
}}
codeTagProps={{ codeTagProps={{
style: { style: {
fontSize: '0.9rem', fontSize: '0.9rem',