From 2680601bc6bffc01de46f6d7348b8bddd48bc1c8 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 28 Mar 2023 11:11:07 +0800 Subject: [PATCH] Hacks to try make it less flashy --- src/components/media.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/media.jsx b/src/components/media.jsx index 3fa8f87c..957e89de 100644 --- a/src/components/media.jsx +++ b/src/components/media.jsx @@ -74,6 +74,9 @@ function Media({ media, showOriginal, autoAnimate, onClick = () => {} }) { style: { width: 'inherit', height: 'inherit', + justifyContent: 'inherit', + alignItems: 'inherit', + display: 'inherit', }, }} onUpdate={onUpdate} @@ -88,6 +91,7 @@ function Media({ media, showOriginal, autoAnimate, onClick = () => {} }) { decoding="async" onLoad={(e) => { e.target.closest('.media-image').style.backgroundImage = ''; + e.target.closest('.media-zoom').style.display = ''; }} />