Skip to content

Commit

Permalink
check longest side
Browse files Browse the repository at this point in the history
  • Loading branch information
edsilv committed Nov 13, 2023
1 parent 173e44f commit aaa5523
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ const DownloadDialogue = ({
if (!size) {
return false;
}
return size.width > confinedImageSize;
return Math.max(size.width, size.height) > confinedImageSize;
case DownloadOption.SELECTION:
return selectionEnabled;
case DownloadOption.RANGE_RENDERINGS:
Expand Down

1 comment on commit aaa5523

@vercel
Copy link

@vercel vercel bot commented on aaa5523 Nov 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.