diff --git a/moon/apps/web/components/CodeView/BlobView/CodeContent.tsx b/moon/apps/web/components/CodeView/BlobView/CodeContent.tsx index 983cf9582..af5290839 100644 --- a/moon/apps/web/components/CodeView/BlobView/CodeContent.tsx +++ b/moon/apps/web/components/CodeView/BlobView/CodeContent.tsx @@ -187,6 +187,7 @@ const CodeContent = ({ fileContent, path }: { fileContent: string, path?: string backgroundColor: selectedLine === i ? '#f0f7ff' : 'transparent' }} className='flex h-6 items-center' + onClick={() => handleLineClick(i)} > {selectedLine === i ? @@ -211,7 +212,7 @@ const CodeContent = ({ fileContent, path }: { fileContent: string, path?: string null } - handleLineClick(i)}> + {i + 1} {line.map((token, key) => (