diff --git a/src/components/media.jsx b/src/components/media.jsx index ffd3f3ca..9c688572 100644 --- a/src/components/media.jsx +++ b/src/components/media.jsx @@ -121,6 +121,7 @@ function Media({ media, to, showOriginal, autoAnimate, onClick = () => {} }) { '--height': `${height}px`, aspectRatio: `${width} / ${height}`, }; + const fixedWidth = width > height * 2; if (isImage) { // Note: type: unknown might not have width/height @@ -142,7 +143,7 @@ function Media({ media, to, showOriginal, autoAnimate, onClick = () => {} }) { return ( {} }) {