From 2853f6391664e62773a39dbff6caa83ac569a6b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Gran=C3=A1t?= Date: Tue, 28 Jan 2025 12:11:00 +0100 Subject: [PATCH] fix: incorrect height calculation (#2878) --- .../projects/translations/Screenshots/ScreenshotDetail.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/src/views/projects/translations/Screenshots/ScreenshotDetail.tsx b/webapp/src/views/projects/translations/Screenshots/ScreenshotDetail.tsx index 176b22f2dd..41d3b3e90c 100644 --- a/webapp/src/views/projects/translations/Screenshots/ScreenshotDetail.tsx +++ b/webapp/src/views/projects/translations/Screenshots/ScreenshotDetail.tsx @@ -83,7 +83,7 @@ export const ScreenshotDetail: React.FC = ({ const viewPort = useWindowSize(); const maxDialogSize = { width: viewPort.width * SCREENSHOT_DETAIL_SIZE, - height: viewPort.width * SCREENSHOT_DETAIL_SIZE, + height: viewPort.height * SCREENSHOT_DETAIL_SIZE, }; const { size: loadedSize, isLoading } = useImagePreload({ @@ -132,8 +132,8 @@ export const ScreenshotDetail: React.FC = ({ >