From 4f80c47250ada020b0f7958481f2f732eb79802b Mon Sep 17 00:00:00 2001 From: DIYgod Date: Sat, 14 Feb 2026 21:20:28 +0800 Subject: [PATCH] style(mobile): rebalance typography sizes (#4848) --- .../src/components/ui/grouped/GroupedList.tsx | 26 +++++++++---------- apps/mobile/src/modules/discover/Category.tsx | 4 +-- .../src/modules/discover/FeedSummary.tsx | 6 ++--- .../discover/RecommendationListItem.tsx | 4 +-- apps/mobile/src/modules/discover/Trending.tsx | 4 +-- .../discover/search-tabs/SearchFeedCard.tsx | 8 +++--- .../discover/search-tabs/SearchList.tsx | 6 ++--- .../modules/entry-content/EntryGridFooter.tsx | 6 ++--- .../src/modules/entry-content/EntryTitle.tsx | 4 +-- .../entry-list/templates/EntryNormalItem.tsx | 14 +++++----- .../entry-list/templates/EntrySocialItem.tsx | 8 +++--- .../src/modules/settings/UserHeaderBanner.tsx | 17 +++++++----- .../modules/subscription/CategoryGrouped.tsx | 2 +- .../modules/subscription/items/InboxItem.tsx | 2 +- .../items/ListSubscriptionItem.tsx | 2 +- .../subscription/items/SubscriptionItem.tsx | 2 +- .../src/screens/(stack)/(tabs)/settings.tsx | 2 +- .../entries/[entryId]/EntryDetailScreen.tsx | 8 +++--- 18 files changed, 64 insertions(+), 61 deletions(-) diff --git a/apps/mobile/src/components/ui/grouped/GroupedList.tsx b/apps/mobile/src/components/ui/grouped/GroupedList.tsx index 37c29e5c5..616893c3e 100644 --- a/apps/mobile/src/components/ui/grouped/GroupedList.tsx +++ b/apps/mobile/src/components/ui/grouped/GroupedList.tsx @@ -37,7 +37,7 @@ interface BaseCellClassNames { export const GroupedOutlineDescription: FC<{ description: string }> = ({ description }) => { - return {description} + return {description} } export const GroupedInsetListCard: FC< PropsWithChildren & ViewProps & GroupedInsetListCardProps @@ -116,7 +116,7 @@ export const GroupedInsetListSectionHeader: FC<{ marginBottom: GROUPED_SECTION_BOTTOM_MARGIN, }} > - + {label} @@ -163,7 +163,7 @@ export const GroupedInsetListNavigationLink: FC< {icon} - {label} + {label} {postfix} @@ -214,10 +214,10 @@ export const GroupedInsetListCell: FC< {!!icon && } - {titleCase(label)} + {titleCase(label)} {!!description && ( - {description} + {description} )} @@ -239,9 +239,9 @@ export const GroupedInsetListActionCellRadio: FC<{ className={cn(pressed ? "bg-system-fill" : undefined, disabled && "opacity-40")} > - {label} + {label} {!!description && ( - {description} + {description} )} @@ -299,10 +299,10 @@ export const GroupedInsetListActionCell: FC<{ {!!icon && } - {label} + {label} {!!description && ( - {description} + {description} )} @@ -327,7 +327,7 @@ export const GroupedInsetButtonCell: FC<{ className={cn(pressed ? "bg-system-fill" : undefined, disabled && "opacity-40")} > - + {label} @@ -355,9 +355,9 @@ export const GroupedInformationCell: FC<{ {icon} )} - {title} + {title} {!!description && ( - + {description} )} @@ -373,7 +373,7 @@ export const GroupedPlainButtonCell: FC< > = ({ label, textClassName, ...props }) => { return ( - {label} + {label} ) } diff --git a/apps/mobile/src/modules/discover/Category.tsx b/apps/mobile/src/modules/discover/Category.tsx index 49642d4b3..e312a7902 100644 --- a/apps/mobile/src/modules/discover/Category.tsx +++ b/apps/mobile/src/modules/discover/Category.tsx @@ -26,7 +26,7 @@ export const Category = () => { - + {t("words.categories")} @@ -82,7 +82,7 @@ const CategoryItem = memo(({ category }: { category: RSSHubCategory }) => { > {CategoryMap[category].emoji} - {name} + {name} diff --git a/apps/mobile/src/modules/discover/FeedSummary.tsx b/apps/mobile/src/modules/discover/FeedSummary.tsx index 062c4c056..d213e0d55 100644 --- a/apps/mobile/src/modules/discover/FeedSummary.tsx +++ b/apps/mobile/src/modules/discover/FeedSummary.tsx @@ -98,17 +98,17 @@ export const FeedSummary = ({ /> - + {feed.title} - + {feed.url} {!simple && !!feed.description && ( diff --git a/apps/mobile/src/modules/discover/RecommendationListItem.tsx b/apps/mobile/src/modules/discover/RecommendationListItem.tsx index 62bae6221..cd9b264a2 100644 --- a/apps/mobile/src/modules/discover/RecommendationListItem.tsx +++ b/apps/mobile/src/modules/discover/RecommendationListItem.tsx @@ -36,7 +36,7 @@ export const RecommendationListItem: FC<{ - {data.name} + {data.name} {/* Tags */} @@ -76,7 +76,7 @@ export const RecommendationListItem: FC<{ {data.routes[route]!.heat} diff --git a/apps/mobile/src/modules/discover/Trending.tsx b/apps/mobile/src/modules/discover/Trending.tsx index 1089e6da1..1c73e3cad 100644 --- a/apps/mobile/src/modules/discover/Trending.tsx +++ b/apps/mobile/src/modules/discover/Trending.tsx @@ -46,7 +46,7 @@ export const Trending = ({ - + {t("words.trending")} @@ -97,7 +97,7 @@ export const Trending = ({ > - + {formatNumber(item.analytics.subscriptionCount || 0)} diff --git a/apps/mobile/src/modules/discover/search-tabs/SearchFeedCard.tsx b/apps/mobile/src/modules/discover/search-tabs/SearchFeedCard.tsx index 3bfe540a5..49ae18c85 100644 --- a/apps/mobile/src/modules/discover/search-tabs/SearchFeedCard.tsx +++ b/apps/mobile/src/modules/discover/search-tabs/SearchFeedCard.tsx @@ -23,7 +23,7 @@ export const SearchFeedCard = ({ item }: { item: TrendingFeedItem | DiscoveryIte - + {formatNumber(followerCount)} {t("feed.follower_other")} @@ -31,16 +31,16 @@ export const SearchFeedCard = ({ item }: { item: TrendingFeedItem | DiscoveryIte {item.analytics?.updatesPerWeek ? ( <> - + {t("feed.entry_week_other", { count: item.analytics.updatesPerWeek })} ) : item.analytics?.latestEntryPublishedAt ? ( <> - {t("feed.updated_at")} + {t("feed.updated_at")} diff --git a/apps/mobile/src/modules/discover/search-tabs/SearchList.tsx b/apps/mobile/src/modules/discover/search-tabs/SearchList.tsx index 2fffd12c4..3280dd07b 100644 --- a/apps/mobile/src/modules/discover/search-tabs/SearchList.tsx +++ b/apps/mobile/src/modules/discover/search-tabs/SearchList.tsx @@ -98,14 +98,14 @@ const SearchListCard = memo(({ item }: { item: SearchResultItem }) => { {item.list?.title} {!!item.list?.description && ( - + {item.list?.description} )} @@ -134,7 +134,7 @@ const SearchListCard = memo(({ item }: { item: SearchResultItem }) => { - + {formatNumber(followerCount)} {t("feed.follower_other")} diff --git a/apps/mobile/src/modules/entry-content/EntryGridFooter.tsx b/apps/mobile/src/modules/entry-content/EntryGridFooter.tsx index eefc110c7..1c53ceca1 100644 --- a/apps/mobile/src/modules/entry-content/EntryGridFooter.tsx +++ b/apps/mobile/src/modules/entry-content/EntryGridFooter.tsx @@ -45,7 +45,7 @@ export const EntryGridFooter = ({ - + {feed?.title} - + ) diff --git a/apps/mobile/src/modules/entry-content/EntryTitle.tsx b/apps/mobile/src/modules/entry-content/EntryTitle.tsx index b840fa5b1..773a9428b 100644 --- a/apps/mobile/src/modules/entry-content/EntryTitle.tsx +++ b/apps/mobile/src/modules/entry-content/EntryTitle.tsx @@ -32,7 +32,7 @@ export const EntryTitle = ({ title, entryId }: { title: string; entryId: string }} > { ) : ( feed && )} - + {entry?.author || feed?.title || ""} diff --git a/apps/mobile/src/modules/entry-list/templates/EntryNormalItem.tsx b/apps/mobile/src/modules/entry-list/templates/EntryNormalItem.tsx index 1addea9a0..ce52b286a 100644 --- a/apps/mobile/src/modules/entry-list/templates/EntryNormalItem.tsx +++ b/apps/mobile/src/modules/entry-list/templates/EntryNormalItem.tsx @@ -102,35 +102,35 @@ export const EntryNormalItem = memo( )} - + {feed?.title || from || "Unknown feed"} - · + · {estimatedMins ? ( <> {formatEstimatedMins(estimatedMins)} - · + · ) : null} {!!entry.title && ( - + {entry.author || feed?.title} - · - + · + {user.name} ) : ( - Folo Account + Folo Account )} {!!role && serverConfigs?.REFERRAL_ENABLED && ( @@ -267,7 +267,7 @@ export const UserHeaderBanner = ({ ? "text-black/70" : "text-white/70" : "text-accent", - "font-semibold", + "text-sm font-semibold", )} > {UserRoleName[role]} @@ -276,7 +276,7 @@ export const UserHeaderBanner = ({ )} {user?.handle ? ( - + @{user.handle} ) : !user ? ( @@ -284,7 +284,7 @@ export const UserHeaderBanner = ({ className="mx-auto" onPress={() => navigation.presentControllerView(LoginScreen)} > - Sign in to your account + Sign in to your account ) : null} @@ -292,7 +292,7 @@ export const UserHeaderBanner = ({ @@ -311,7 +311,10 @@ export const UserHeaderBanner = ({ color={gradientLight ? "rgba(0,0,0,0.7)" : "rgba(255,255,255,0.7)"} /> {user.website.replace(/^(https?:\/\/)?(www\.)?/, "")} diff --git a/apps/mobile/src/modules/subscription/CategoryGrouped.tsx b/apps/mobile/src/modules/subscription/CategoryGrouped.tsx index 7d99f4caa..b6da1a010 100644 --- a/apps/mobile/src/modules/subscription/CategoryGrouped.tsx +++ b/apps/mobile/src/modules/subscription/CategoryGrouped.tsx @@ -87,7 +87,7 @@ export const CategoryGrouped = memo( - {category} + {category} diff --git a/apps/mobile/src/modules/subscription/items/InboxItem.tsx b/apps/mobile/src/modules/subscription/items/InboxItem.tsx index 0502083e1..95a4ccbed 100644 --- a/apps/mobile/src/modules/subscription/items/InboxItem.tsx +++ b/apps/mobile/src/modules/subscription/items/InboxItem.tsx @@ -60,7 +60,7 @@ export const InboxItem = memo(({ id, isFirst, isLast }: SubscriptionItemBaseProp { onPress={() => navigation.pushControllerView(EditProfileScreen)} > - {t("words.edit")} + {t("words.edit")} ) } diff --git a/apps/mobile/src/screens/(stack)/entries/[entryId]/EntryDetailScreen.tsx b/apps/mobile/src/screens/(stack)/entries/[entryId]/EntryDetailScreen.tsx index 0380d03a5..ad2b61f5a 100644 --- a/apps/mobile/src/screens/(stack)/entries/[entryId]/EntryDetailScreen.tsx +++ b/apps/mobile/src/screens/(stack)/entries/[entryId]/EntryDetailScreen.tsx @@ -207,7 +207,7 @@ const EntryInfo = ({ entryId }: { entryId: string }) => { {feed && ( - + {feed.title?.trim()} @@ -216,13 +216,13 @@ const EntryInfo = ({ entryId }: { entryId: string }) => { {!hideRecentReader && ( - {readCount} + {readCount} )} @@ -235,7 +235,7 @@ const EntryInfoSocial = ({ entryId }: { entryId: string }) => { if (!entry) return null return ( - + {entry.publishedAt.toLocaleString("en-US", { dateStyle: "medium", timeStyle: "short",