Skip to content

Commit c3d8151

Browse files
committed
fix(files): use actual scale for raster images, add my-4 to mermaid zoom
1 parent cd5f27e commit c3d8151

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ const STATIC_MARKDOWN_COMPONENTS = {
481481
definition={definition ?? ''}
482482
isStreaming={isStreaming}
483483
zoomable
484-
zoomClassName='h-[420px] rounded-lg'
484+
zoomClassName='my-4 h-[420px] rounded-lg'
485485
/>
486486
)
487487
},
@@ -620,7 +620,7 @@ const STATIC_MARKDOWN_COMPONENTS = {
620620
img: ({ src, alt }: React.ImgHTMLAttributes<HTMLImageElement>) => {
621621
const resolvedSrc = resolveSimFileUrl(typeof src === 'string' ? src : undefined)
622622
return (
623-
<ZoomablePreview className='my-3 h-[360px] rounded-md' initialScale='fit'>
623+
<ZoomablePreview className='my-3 h-[360px] rounded-md' initialScale='actual'>
624624
<img
625625
src={resolvedSrc}
626626
alt={alt ?? ''}

0 commit comments

Comments
 (0)