We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39ce576 commit 847b0a6Copy full SHA for 847b0a6
dotcom-rendering/src/components/GalleryImage.tsx
@@ -75,14 +75,17 @@ export const GalleryImage = ({
75
return null;
76
}
77
78
- const boundedImageStyles = css`
79
- ${galleryBodyImageStyles};
80
- max-width: calc(${width / height} * 96vh);
81
- `;
82
-
83
return (
84
<figure css={styles}>
85
- <div css={boundedImageStyles}>
+ <div
+ css={galleryBodyImageStyles}
+ /**
+ * This ensures that the image height never goes above 96vh.
+ */
+ style={{
86
+ maxWidth: `calc(${width / height} * 96vh)`,
87
+ }}
88
+ >
89
{renderingTarget === 'Apps' ? (
90
<Island priority="critical">
91
<AppsLightboxImage
0 commit comments