set line number userSelect to none so that code can be copied without line number

This commit is contained in:
Ethan Garber 2025-07-15 21:10:22 -04:00
parent 0f7f2a7b38
commit b0e66993fe

View File

@ -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)}