Skip to content

Commit

Permalink
fix(classifier): proportional height for subject images
Browse files Browse the repository at this point in the history
When 'limit subject height' is enabled, style subject images with a proportional height of 90% of the viewport height, up to a maximum size of the original image height.
  • Loading branch information
eatyourgreens committed Oct 3, 2024
1 parent fef769f commit 07da390
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function SingleImageViewer({
>
<PlaceholderSVG
focusable
maxHeight={svgMaxHeight}
height={svgMaxHeight}
maxWidth={limitSubjectHeight ? `${width}px` : '100%'}
onKeyDown={onKeyDown}
tabIndex={0}
Expand Down

0 comments on commit 07da390

Please sign in to comment.