fix: zoom width limit

This commit is contained in:
Stephen Zhou
2024-11-14 21:26:25 +08:00
parent 7168168b51
commit eaf33d272f
@@ -363,7 +363,7 @@ const FallbackableImage: FC<
...wrapperStyle,
minWidth:
scale > 1 && !haveSideContent
? `${Math.min(maxContainerWidth / 2, scale * imgWidth)}px`
? `${Math.min(maxContainerWidth, scale * imgWidth)}px`
: undefined,
height: scale > 1 ? "100%" : undefined,
}}