diff --git a/apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/preview-panel.tsx b/apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/preview-panel.tsx index 3696686409..75e49d3849 100644 --- a/apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/preview-panel.tsx +++ b/apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/preview-panel.tsx @@ -495,7 +495,14 @@ const STATIC_MARKDOWN_COMPONENTS = { ), 'mermaid-diagram': ({ definition }: { definition?: string }) => { const isStreaming = useContext(MermaidStreamingCtx) - return + return ( + + ) }, p: ({ children }: { children?: React.ReactNode }) => (

@@ -619,12 +626,15 @@ const STATIC_MARKDOWN_COMPONENTS = { img: ({ src, alt }: React.ImgHTMLAttributes) => { const resolvedSrc = resolveSimFileUrl(typeof src === 'string' ? src : undefined) return ( - {alt + + {alt + ) }, table: ({ children }: { children?: React.ReactNode }) => ( diff --git a/apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/zoomable-preview.tsx b/apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/zoomable-preview.tsx index bcdb3aa9e0..151b4325a8 100644 --- a/apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/zoomable-preview.tsx +++ b/apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/zoomable-preview.tsx @@ -47,7 +47,7 @@ function getFitZoom(container: Size, content: Size): number { const availableWidth = Math.max(1, container.width - FIT_PADDING) const availableHeight = Math.max(1, container.height - FIT_PADDING) - return clampZoom(Math.min(1, availableWidth / content.width, availableHeight / content.height)) + return clampZoom(Math.min(availableWidth / content.width, availableHeight / content.height)) } function clampOffset(container: Size, content: Size, offset: Offset, zoom: number): Offset {