Skip to content

Commit 277ed30

Browse files
authored
FIXED: Reset Button Not Restoring Zoom Level in File Preview (ohcnetwork#12470)
1 parent a5a6a15 commit 277ed30

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/Common/FilePreviewDialog.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,11 @@ const FilePreviewDialog = (props: FilePreviewProps) => {
466466
label: t("reset"),
467467
icon: "l-minus-circle",
468468
action: () =>
469-
setFileState((prev) => ({ ...prev, rotation: 0 })),
469+
setFileState((prev) => ({
470+
...prev,
471+
rotation: 0,
472+
zoom: 4,
473+
})),
470474
disabled: false,
471475
},
472476
{

0 commit comments

Comments
 (0)