Skip to content

Commit 218a7d5

Browse files
fix lint
1 parent 33851c3 commit 218a7d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/sim/app/workspace/[workspaceId]/files/components/file-viewer

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function fitDocxToContainer(host: HTMLElement) {
3737

3838
const wrapperStyle = window.getComputedStyle(wrapper)
3939
const horizontalPadding =
40-
parseFloat(wrapperStyle.paddingLeft) + parseFloat(wrapperStyle.paddingRight)
40+
Number.parseFloat(wrapperStyle.paddingLeft) + Number.parseFloat(wrapperStyle.paddingRight)
4141
const naturalWrapperWidth = naturalPageWidth + horizontalPadding
4242
const available = host.clientWidth
4343
const scale = Math.min(1, available / naturalWrapperWidth)

0 commit comments

Comments
 (0)