From b5769eacb30bf3c6a993469af4067810ce8f253d Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Mon, 1 Apr 2024 21:07:36 +0200 Subject: [PATCH] add close button for videos in replies --- src/components/post/post.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/components/post/post.tsx b/src/components/post/post.tsx index 2110ebd8..24119cb6 100644 --- a/src/components/post/post.tsx +++ b/src/components/post/post.tsx @@ -58,6 +58,16 @@ const ReplyDesktop = ({ index, reply }: { index: number; reply: Comment }) => { {link.length > 30 ? link.slice(0, 30) + '...' : link} + {!showThumbnail && (commentMediaInfo?.type === 'iframe' || commentMediaInfo?.type === 'video') && ( + + {' '} + [ + setShowThumbnail(true)}> + {t('close')} + + ] + + )} {hasThumbnail && (