Skip to content

Commit

Permalink
Fix note overlapping and limit display to 100 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamkmr04 committed Sep 3, 2024
1 parent b1316e6 commit 4739416
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions views/Activity/Activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -603,8 +603,13 @@ export default class Activity extends React.PureComponent<
'text'
),
fontFamily:
'Lato-Regular'
'Lato-Regular',
flexShrink: 0,
flex: 0,
width: 'auto',
overflow: 'hidden'
}}
numberOfLines={1}
>
{localeString(
'general.note'
Expand All @@ -618,10 +623,18 @@ export default class Activity extends React.PureComponent<
'secondaryText'
),
fontFamily:
'Lato-Regular'
'Lato-Regular',
flexWrap: 'wrap',
flexShrink: 1
}}
ellipsizeMode="tail"
>
{note}
{note.length > 150
? `${note.substring(
0,
150
)}...`
: note}
</ListItem.Subtitle>
</View>
)}
Expand Down

0 comments on commit 4739416

Please sign in to comment.