From f6ef727cae71679ae1530d392c456a3246250cb5 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 13 Jun 2023 15:32:10 +0800 Subject: [PATCH] Seems like this is not needed Fix See Post button not opening the post --- src/components/media-modal.jsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/media-modal.jsx b/src/components/media-modal.jsx index 8f569aa5..27446dd3 100644 --- a/src/components/media-modal.jsx +++ b/src/components/media-modal.jsx @@ -219,14 +219,14 @@ function MediaModal({ : '' }`} class="button carousel-button media-post-link plain3" - onClick={() => { - // if small screen (not media query min-width 40em + 350px), run onClose - if ( - !window.matchMedia('(min-width: calc(40em + 350px))').matches - ) { - onClose(); - } - }} + // onClick={() => { + // // if small screen (not media query min-width 40em + 350px), run onClose + // if ( + // !window.matchMedia('(min-width: calc(40em + 350px))').matches + // ) { + // onClose(); + // } + // }} > See post »