fix: follow feed screen layout shift

This commit is contained in:
lawvs
2025-06-13 04:34:14 +08:00
parent e3f27dd7d3
commit 4523c10ed2
+13 -9
View File
@@ -181,15 +181,19 @@ function FollowImpl(props: { feedId: string }) {
}}
>
<View className="ml-11 mt-2 flex-row items-center gap-3 opacity-60">
{!!feed.subscriptionCount && (
<View className="flex-row items-center gap-1">
<User3CuteReIcon width={12} height={12} />
<Text className="text-text text-sm">
{formatNumber(feed.subscriptionCount || 0)}{" "}
{tCommon("feed.follower", { count: feed.subscriptionCount })}
</Text>
</View>
)}
<View className="flex-row items-center gap-1">
<User3CuteReIcon width={12} height={12} />
<Text className="text-text text-sm">
{typeof feed.subscriptionCount === "number" ? (
formatNumber(feed.subscriptionCount || 0)
) : (
<>?</>
)}{" "}
{tCommon("feed.follower", {
count: feed.subscriptionCount ?? 0,
})}
</Text>
</View>
{feed.updatesPerWeek ? (
<View className="flex-row items-center gap-1">
<SafetyCertificateCuteReIcon width={12} height={12} />