Merge branch 'dev' of github.com:simstudioai/sim into dev

This commit is contained in:
Vikhyath Mondreti
2026-04-10 12:13:14 -07:00
2 changed files with 8 additions and 2 deletions

View File

@@ -111,7 +111,7 @@ function createCustomComponents(LinkComponent: typeof LinkWithPreview) {
},
inlineCode: ({ children }: { children?: React.ReactNode }) => (
<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'>
<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'>
{children}
</code>
),

View File

@@ -204,7 +204,13 @@ interface FileViewerProps {
function isCodeFile(file: { type: string; name: string }): boolean {
const ext = getFileExtension(file.name)
return SUPPORTED_CODE_EXTENSIONS.includes(ext as (typeof SUPPORTED_CODE_EXTENSIONS)[number])
return (
SUPPORTED_CODE_EXTENSIONS.includes(ext as (typeof SUPPORTED_CODE_EXTENSIONS)[number]) ||
ext === 'html' ||
ext === 'htm' ||
ext === 'xml' ||
ext === 'svg'
)
}
function resolveCodeEditorLanguage(file: { type: string; name: string }): CodeEditorLanguage {