File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
chat/components/message/components
workspace/[workspaceId]/files/components/file-viewer Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ function createCustomComponents(LinkComponent: typeof LinkWithPreview) {
111111 } ,
112112
113113 inlineCode : ( { children } : { children ?: React . ReactNode } ) => (
114- < code className = 'rounded bg-gray-200 px-1 py-0.5 font-mono text-[0.9em] text-gray-800 dark:bg-gray-700 dark:text-gray-200' >
114+ < code className = 'rounded bg-gray-200 px-1 py-0.5 font-mono text-inherit text-gray-800 dark:bg-gray-700 dark:text-gray-200' >
115115 { children }
116116 </ code >
117117 ) ,
Original file line number Diff line number Diff line change @@ -204,7 +204,13 @@ interface FileViewerProps {
204204
205205function isCodeFile ( file : { type : string ; name : string } ) : boolean {
206206 const ext = getFileExtension ( file . name )
207- return SUPPORTED_CODE_EXTENSIONS . includes ( ext as ( typeof SUPPORTED_CODE_EXTENSIONS ) [ number ] )
207+ return (
208+ SUPPORTED_CODE_EXTENSIONS . includes ( ext as ( typeof SUPPORTED_CODE_EXTENSIONS ) [ number ] ) ||
209+ ext === 'html' ||
210+ ext === 'htm' ||
211+ ext === 'xml' ||
212+ ext === 'svg'
213+ )
208214}
209215
210216function resolveCodeEditorLanguage ( file : { type : string ; name : string } ) : CodeEditorLanguage {
You can’t perform that action at this time.
0 commit comments