From d181771a7bf314cdb30f2fdd76294c5cded524ab Mon Sep 17 00:00:00 2001 From: Innei Date: Wed, 31 Jul 2024 21:45:41 +0800 Subject: [PATCH] fix: entry column padding top and filter unread/read in tweet view Signed-off-by: Innei --- src/renderer/src/modules/entry-column/index.tsx | 6 +++--- src/renderer/src/modules/entry-column/social-media-item.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/renderer/src/modules/entry-column/index.tsx b/src/renderer/src/modules/entry-column/index.tsx index 73be4d2fd3..2648d4bdd8 100644 --- a/src/renderer/src/modules/entry-column/index.tsx +++ b/src/renderer/src/modules/entry-column/index.tsx @@ -155,9 +155,9 @@ export function EntryColumn() { totalCount={virtuosoOptions.totalCount} hasUpdate={entries.hasUpdate} /> - + {isRefreshing && ( -
+
Refreshing new entries...
@@ -175,7 +175,7 @@ export function EntryColumn() { mask={false} ref={scrollRef} rootClassName="h-full" - viewportClassName="[&>div]:grow flex pt-3" + viewportClassName="[&>div]:grow flex" > {virtuosoOptions.totalCount === 0 ? ( entries.isLoading ? diff --git a/src/renderer/src/modules/entry-column/social-media-item.tsx b/src/renderer/src/modules/entry-column/social-media-item.tsx index 87795f4b3e..3d776e6b58 100644 --- a/src/renderer/src/modules/entry-column/social-media-item.tsx +++ b/src/renderer/src/modules/entry-column/social-media-item.tsx @@ -118,7 +118,7 @@ const ActionBar = ({ entryId }: { entryId: string }) => { return (
{items - .filter((item) => !item.disabled) + .filter((item) => !item.disabled && (item.key !== "read" && item.key !== "unread")) .map((item) => (