diff --git a/desktop/src/components/chat/CodeViewer.tsx b/desktop/src/components/chat/CodeViewer.tsx index f8ce60ec..f75721e5 100644 --- a/desktop/src/components/chat/CodeViewer.tsx +++ b/desktop/src/components/chat/CodeViewer.tsx @@ -38,11 +38,10 @@ export function CodeViewer({ code, language, maxLines = 20, showLineNumbers = tr const lineCountLabel = `${lines.length} ${lines.length === 1 ? 'line' : 'lines'}` const showExpandToggle = lines.length > maxLines - const displayLines = visibleLines.length return ( -
-
+
+
{languageLabel} {lineCountLabel} @@ -54,23 +53,21 @@ export function CodeViewer({ code, language, maxLines = 20, showLineNumbers = tr
-
+
{visibleLines.map((line, index) => (
{showLineNumbers ? ( - + {startLine + index} ) : ( )}
@@ -81,7 +78,7 @@ export function CodeViewer({ code, language, maxLines = 20, showLineNumbers = tr {showExpandToggle && (