From 71bc63d5fd9b36403de433ea0cc48ad6b63cec51 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Sun, 19 Jan 2025 16:51:37 +0000 Subject: [PATCH] Only blur titles for list blur --- src/components/VideoPostCard.tsx | 59 ++++++++++++++++++-------------- 1 file changed, 34 insertions(+), 25 deletions(-) diff --git a/src/components/VideoPostCard.tsx b/src/components/VideoPostCard.tsx index 34c14d787e..3d353dd775 100644 --- a/src/components/VideoPostCard.tsx +++ b/src/components/VideoPostCard.tsx @@ -59,6 +59,8 @@ export function VideoPostCard({ onOut: onPressOut, } = useInteractionState() + const listModUi = moderation.ui('contentList') + const mergedModui = useMemo(() => { const modui = moderation.ui('contentList') const mediaModui = moderation.ui('contentMedia') @@ -82,6 +84,32 @@ export function VideoPostCard({ const {thumbnail} = embed const black = getBlackColor(t) + const textAndAuthor = ( + + {text && ( + + {text} + + )} + + + + + + + {sanitizeHandle(post.author.handle, '@')} + + + + ) + return ( - + {listModUi.blur ? ( + + ) : ( + textAndAuthor + )} - - {text && ( - - {text} - - )} - - - - - - - {sanitizeHandle(post.author.handle, '@')} - - - + {textAndAuthor}