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 dcb6fdd commit 577e8a0Copy full SHA for 577e8a0
src/components/ArticleV3/ArticleCellFigure.js
@@ -54,7 +54,7 @@ const ArticleCellFigure = ({
54
const aspectRatio = getFigureRatio(tags);
55
const figureHeight = useFigureHeight(tags, !aspectRatio, figure.isCover);
56
const containerWidth = useContainerWidth(pictureRef);
57
- const shouldUseFixedHeight = figureHeight && (!figure.isCover || !aspectRatio) && (figureHeight * aspectRatio) <= containerWidth;
+ const shouldUseFixedHeight = figureHeight && (!figure.isCover || !aspectRatio) && (figureHeight / aspectRatio) <= containerWidth;
58
59
const { height: windowHeight } = useWindowSize();
60
0 commit comments