Skip to content

Commit

Permalink
fix: incorrect height calculation (#2878)
Browse files Browse the repository at this point in the history
  • Loading branch information
stepan662 authored Jan 28, 2025
1 parent 93477bb commit 2853f63
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const ScreenshotDetail: React.FC<ScreenshotDetailProps> = ({
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({
Expand Down Expand Up @@ -132,8 +132,8 @@ export const ScreenshotDetail: React.FC<ScreenshotDetailProps> = ({
>
<StyledContainer
style={{
width: width,
height: height,
width,
height,
}}
className={clsx({ loading: isLoading })}
>
Expand Down

0 comments on commit 2853f63

Please sign in to comment.