Skip to content

Commit 8a63893

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

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
@@ -500,7 +500,7 @@ const STATIC_MARKDOWN_COMPONENTS = {
500500
definition={definition ?? ''}
501501
isStreaming={isStreaming}
502502
zoomable
503-
zoomClassName='h-[420px] rounded-lg'
503+
zoomClassName='my-4 h-[420px] rounded-lg'
504504
/>
505505
)
506506
},
@@ -626,7 +626,7 @@ const STATIC_MARKDOWN_COMPONENTS = {
626626
img: ({ src, alt }: React.ImgHTMLAttributes<HTMLImageElement>) => {
627627
const resolvedSrc = resolveSimFileUrl(typeof src === 'string' ? src : undefined)
628628
return (
629-
<ZoomablePreview className='my-3 h-[360px] rounded-md' initialScale='fit'>
629+
<ZoomablePreview className='my-3 h-[360px] rounded-md' initialScale='actual'>
630630
<img
631631
src={resolvedSrc}
632632
alt={alt ?? ''}

0 commit comments

Comments
 (0)