From c30eaee4e26cfc9e7d52a49ef0a151d84ddf6e7d Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 1 Aug 2023 18:20:54 +0800 Subject: [PATCH] Somehow this kinda works --- src/components/media.jsx | 5 ++--- src/components/status.css | 9 ++------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/components/media.jsx b/src/components/media.jsx index 9c688572..ffd3f3ca 100644 --- a/src/components/media.jsx +++ b/src/components/media.jsx @@ -121,7 +121,6 @@ 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 @@ -143,7 +142,7 @@ function Media({ media, to, showOriginal, autoAnimate, onClick = () => {} }) { return ( {} }) {