Skip to content

Commit

Permalink
issue #677: v3: figure not displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic-reis committed Nov 20, 2024
1 parent 2e66238 commit 09fdb90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ArticleV3/ArticleCellFigure.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const ArticleCellFigure = ({
const aspectRatio = getFigureRatio(tags);
const figureHeight = useFigureHeight(tags, !aspectRatio, figure.isCover);
const containerWidth = useContainerWidth(pictureRef);
const shouldUseFixedHeight = figureHeight && (!figure.isCover || !aspectRatio) && (figureHeight / aspectRatio) <= containerWidth;
const shouldUseFixedHeight = figureHeight && (!figure.isCover || !aspectRatio) && (!aspectRatio || (figureHeight / aspectRatio) <= containerWidth);

const { height: windowHeight } = useWindowSize();

Expand Down

0 comments on commit 09fdb90

Please sign in to comment.