Skip to content

Commit

Permalink
Truncate long title collections on mobile (#1725)
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinnnnn authored Jul 25, 2023
1 parent f1d28d2 commit effc199
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions apps/mobile/src/components/Feed/FeedListSectionHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function FeedListSectionHeader({ feedEventRef }: FeedListSectionHeaderPro

return (
<View className="flex flex-row items-center justify-between bg-white dark:bg-black-900 px-3 pb-2">
<View className="flex flex-row space-x-1 items-center">
<View className="flex flex-row space-x-1 items-center" style={{ maxWidth: '92%' }}>
<GalleryTouchableOpacity
className="flex flex-row items-center space-x-1"
onPress={handleUsernamePress}
Expand All @@ -87,11 +87,17 @@ export function FeedListSectionHeader({ feedEventRef }: FeedListSectionHeaderPro
</Typography>

<GalleryTouchableOpacity
className="flex-1"
onPress={handleGalleryNamePress}
eventElementId="Feed Gallery Name Button"
eventName="Feed Gallery Name Clicked"
>
<Typography className="text-sm" font={{ family: 'ABCDiatype', weight: 'Bold' }}>
<Typography
className="text-sm"
font={{ family: 'ABCDiatype', weight: 'Bold' }}
ellipsizeMode="tail"
numberOfLines={1}
>
{galleryName || 'their gallery'}
</Typography>
</GalleryTouchableOpacity>
Expand Down

0 comments on commit effc199

Please sign in to comment.