Skip to content

Commit

Permalink
truncate expense description on expense preview
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhutornyi committed Feb 9, 2024
1 parent 9463e22 commit c4f1db2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/ReportActionItem/MoneyRequestPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,11 @@ function MoneyRequestPreview({
{!isCurrentUserManager && shouldShowPendingConversionMessage && (
<Text style={[styles.textLabel, styles.colorMuted]}>{translate('iou.pendingConversionMessage')}</Text>
)}
{shouldShowDescription && <RenderHTML html={parser.replace(merchantOrDescription)} />}
{shouldShowDescription && (
<View style={[styles.breakWord, styles.preWrap]}>
<RenderHTML html={parser.replace(merchantOrDescription)} />
</View>
)}
{shouldShowMerchant && <Text style={[styles.textLabelSupporting, styles.textNormal]}>{merchantOrDescription}</Text>}
</View>
{isBillSplit && participantAccountIDs.length > 0 && !!requestAmount && requestAmount > 0 && (
Expand Down

0 comments on commit c4f1db2

Please sign in to comment.