diff --git a/apps/mobile/src/modules/entry-list/entry-list-article.tsx b/apps/mobile/src/modules/entry-list/entry-list-article.tsx index f34b94fe31..c8ded3e277 100644 --- a/apps/mobile/src/modules/entry-list/entry-list-article.tsx +++ b/apps/mobile/src/modules/entry-list/entry-list-article.tsx @@ -94,7 +94,7 @@ function EntryItem({ entryId }: { entryId: string }) { diff --git a/apps/mobile/src/modules/entry-list/entry-list-social.tsx b/apps/mobile/src/modules/entry-list/entry-list-social.tsx index d58aeb0bb3..b6d0be118e 100644 --- a/apps/mobile/src/modules/entry-list/entry-list-social.tsx +++ b/apps/mobile/src/modules/entry-list/entry-list-social.tsx @@ -95,7 +95,7 @@ function EntryItem({ entryId }: { entryId: string }) { diff --git a/apps/mobile/src/modules/screen/TimelineViewSelector.tsx b/apps/mobile/src/modules/screen/TimelineViewSelector.tsx index 5da3e484f5..af3d2fa5b5 100644 --- a/apps/mobile/src/modules/screen/TimelineViewSelector.tsx +++ b/apps/mobile/src/modules/screen/TimelineViewSelector.tsx @@ -96,6 +96,7 @@ function ViewItem({ view }: { view: ViewDefinition }) { const selectedFeed = useSelectedFeed() const isActive = selectedFeed?.type === "view" && selectedFeed.viewId === view.view const unreadCount = useUnreadCountByView(view.view) + const borderColor = useColor("gray5") const textWidth = useSharedValue(130) const width = useSharedValue(isActive ? Math.max(130, textWidth.value + 48) : 48) @@ -104,7 +105,7 @@ function ViewItem({ view }: { view: ViewDefinition }) { if (isActive) { width.value = withSpring(Math.max(130, textWidth.value + 48), gentleSpringPreset) } - }, [isActive, unreadCount, unreadCount]) + }, [isActive, unreadCount]) return ( {isActive ? ( - - {view.name + (unreadCount ? ` (${unreadCount})` : "")} - + <> + + {view.name} + + {!!unreadCount && ( + + )} + ) : ( !!unreadCount && !isActive && ( ) )}