diff --git a/src/components/post/post.module.css b/src/components/post/post.module.css index b6858d90..c6468bd6 100644 --- a/src/components/post/post.module.css +++ b/src/components/post/post.module.css @@ -213,4 +213,12 @@ font-weight: bold; font-size: 10px; cursor: pointer; +} + +/* 1px compromise to hide removed posts immediately, before the feed updates, while avoiding virtuoso's zero-sized element error */ +.minimalHeight { + visibility: hidden; + padding: 0; + margin: 0; + height: 1px; } \ No newline at end of file diff --git a/src/components/post/post.tsx b/src/components/post/post.tsx index d196811f..9f777fad 100644 --- a/src/components/post/post.tsx +++ b/src/components/post/post.tsx @@ -123,7 +123,7 @@ const Post = ({ post = {}, index }: PostProps) => { const { blocked, unblock } = useBlock({ address: cid }); return ( -
+
{t('post_hidden').charAt(0).toUpperCase() + t('post_hidden').slice(1)}