Skip to content

Commit f268c39

Browse files
authored
Merge pull request #34128 from tienifr/fix/32555
Fix: Inconsistency of spacing in thread title
2 parents 9e3492d + 2d7ae8b commit f268c39

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/DisplayNames/DisplayNamesWithTooltip.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {View} from 'react-native';
44
import Text from '@components/Text';
55
import Tooltip from '@components/Tooltip';
66
import useThemeStyles from '@hooks/useThemeStyles';
7+
import * as ReportUtils from '@libs/ReportUtils';
78
import DisplayNamesTooltipItem from './DisplayNamesTooltipItem';
89
import type DisplayNamesProps from './types';
910

@@ -48,12 +49,12 @@ function DisplayNamesWithToolTip({shouldUseFullTitle, fullTitle, displayNamesWit
4849
return (
4950
// Tokenization of string only support prop numberOfLines on Web
5051
<Text
51-
style={[textStyles, styles.pRelative, numberOfLines === 1 ? styles.noWrap : {}]}
52+
style={[textStyles, styles.pRelative]}
5253
numberOfLines={numberOfLines || undefined}
5354
ref={containerRef}
5455
>
5556
{shouldUseFullTitle
56-
? fullTitle
57+
? ReportUtils.formatReportLastMessageText(fullTitle)
5758
: displayNamesWithTooltips.map(({displayName, accountID, avatar, login}, index) => (
5859
// eslint-disable-next-line react/no-array-index-key
5960
<Fragment key={index}>

0 commit comments

Comments
 (0)