set line number userSelect to none so that code can be copied without line number
This commit is contained in:
parent
0f7f2a7b38
commit
b0e66993fe
@ -79,6 +79,16 @@ function RenderMarkdownComponent({
|
||||
|
||||
return !isInline && !isUser ? (
|
||||
<div className="relative overflow-hidden border rounded-md border-main-view-fg/2">
|
||||
<style>
|
||||
{`
|
||||
.react-syntax-highlighter-line-number {
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
}
|
||||
`}
|
||||
</style>
|
||||
<div className="flex items-center justify-between px-4 py-2 bg-main-view/10">
|
||||
<span className="font-medium text-xs font-sans">
|
||||
{getReadableLanguageName(language)}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user