We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33851c3 commit 218a7d5Copy full SHA for 218a7d5
1 file changed
apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/docx-preview.tsx
@@ -37,7 +37,7 @@ function fitDocxToContainer(host: HTMLElement) {
37
38
const wrapperStyle = window.getComputedStyle(wrapper)
39
const horizontalPadding =
40
- parseFloat(wrapperStyle.paddingLeft) + parseFloat(wrapperStyle.paddingRight)
+ Number.parseFloat(wrapperStyle.paddingLeft) + Number.parseFloat(wrapperStyle.paddingRight)
41
const naturalWrapperWidth = naturalPageWidth + horizontalPadding
42
const available = host.clientWidth
43
const scale = Math.min(1, available / naturalWrapperWidth)
0 commit comments