diff --git a/apps/web/src/components/FileViewer.tsx b/apps/web/src/components/FileViewer.tsx index 93d72edc8..b10f62ce0 100644 --- a/apps/web/src/components/FileViewer.tsx +++ b/apps/web/src/components/FileViewer.tsx @@ -614,8 +614,8 @@ function previewScaleShellStyle( ): CSSProperties & Record { if (viewport === 'desktop') { return { - width: `${100 / previewScale}%`, - height: `${100 / previewScale}%`, + width: '100%', + height: '100%', transform: `scale(${previewScale})`, transformOrigin: '0 0', }; @@ -635,8 +635,8 @@ function manualEditPreviewShellStyle( ): CSSProperties & Record { if (viewport === 'desktop' && frozenWidth) { return { - width: `${frozenWidth / previewScale}px`, - height: `${100 / previewScale}%`, + width: `${frozenWidth}px`, + height: '100%', transform: `scale(${previewScale})`, transformOrigin: '0 0', };