diff --git a/moon/apps/web/components/CodeView/BlobView/CodeContent.tsx b/moon/apps/web/components/CodeView/BlobView/CodeContent.tsx index 7467270a9..62bd46bea 100644 --- a/moon/apps/web/components/CodeView/BlobView/CodeContent.tsx +++ b/moon/apps/web/components/CodeView/BlobView/CodeContent.tsx @@ -202,9 +202,11 @@ const CodeContent = ({ fileContent, path }: { fileContent: string; path?: string backgroundColor: '#fff', padding: '16px', paddingTop: '30px', - userSelect: 'text' + userSelect: 'text', + whiteSpace: 'pre-wrap', + wordBreak: 'break-all' }} - className='overflow-x-auto whitespace-pre rounded-lg p-4 text-sm' + className='overflow-x-auto rounded-lg p-4 text-sm' > {/*