fix(mobile): adjust entry title and feed title display

- Reduce horizontal padding in EntryTitle component
- Trim feed title to remove potential whitespace

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei 2025-02-26 23:12:32 +08:00
parent b844af9a8d
commit a3955dffed
No known key found for this signature in database
GPG Key ID: 0F62D33977F021F7
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ export const EntryTitle = ({ title, entryId }: { title: string; entryId: string
setTitleHeight(titleHeight)
}}
>
<Text className="text-label px-4 text-4xl font-bold leading-snug">{title}</Text>
<Text className="text-label px-2 text-4xl font-bold leading-snug">{title}</Text>
</View>
</>
)

View File

@ -121,7 +121,7 @@ const FeedInfo = ({ feedId }: { feedId: string }) => {
if (!feed) return null
return (
<View className="mb-2">
<Text className="text-secondary-label">{feed.title}</Text>
<Text className="text-secondary-label">{feed.title?.trim()}</Text>
</View>
)
}