disable selection on code block line numbers
This commit is contained in:
parent
23b3af6ee4
commit
aeb03500d8
1 changed files with 3 additions and 0 deletions
|
|
@ -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',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue