disable selection on code block line numbers

This commit is contained in:
Vũ Văn Dũng 2023-10-18 10:39:23 +07:00 committed by GitHub
parent 23b3af6ee4
commit aeb03500d8
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',
padding: '1.5rem 1rem'
}}
lineNumberStyle={{
userSelect: "none",
}}
codeTagProps={{
style: {
fontSize: '0.9rem',