From 509bd506b5756f5a1bae6acb60bae6e4e2b33fac Mon Sep 17 00:00:00 2001 From: Aman Harwara Date: Mon, 23 May 2022 16:45:12 +0530 Subject: [PATCH] fix: image zoom scroll (#1038) --- app/assets/javascripts/Components/Files/ImagePreview.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/Components/Files/ImagePreview.tsx b/app/assets/javascripts/Components/Files/ImagePreview.tsx index 7aecc46abe8..a07d75d2969 100644 --- a/app/assets/javascripts/Components/Files/ImagePreview.tsx +++ b/app/assets/javascripts/Components/Files/ImagePreview.tsx @@ -26,7 +26,7 @@ export const ImagePreview: FunctionComponent = ({ objectUrl }) => { } : { position: 'absolute', - inset: 0, + top: 0, margin: 'auto', }), }}