Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

add comment to justify style block

Ethan Garbera3b95f01de16
diff --git a/web-app/src/containers/RenderMarkdown.tsx b/web-app/src/containers/RenderMarkdown.tsx
index 7d90cbada..bfcb1608d 100644
--- a/web-app/src/containers/RenderMarkdown.tsx
+++ b/web-app/src/containers/RenderMarkdown.tsx
@@ -80,6 +80,8 @@ function RenderMarkdownComponent({
return !isInline && !isUser ? (
<div className="relative overflow-hidden border rounded-md border-main-view-fg/2">
<style>
+ {/* Disable selection of line numbers. React Syntax Highlighter currently has
+ unfixed bug so we can't use the lineNumberContainerStyleProp */}
{`
.react-syntax-highlighter-line-number {
user-select: none;