Skip to content

Commit ac84c62

Browse files
committed
Merge branch 'dev' of github.com:simstudioai/sim into dev
2 parents da28f8a + 3690dc2 commit ac84c62

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

apps/sim/app/chat/components/message/components/markdown-renderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
),

apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/file-viewer.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,13 @@ interface FileViewerProps {
204204

205205
function 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

210216
function resolveCodeEditorLanguage(file: { type: string; name: string }): CodeEditorLanguage {

0 commit comments

Comments
 (0)