Skip to content

Commit

Permalink
Merge pull request #34128 from tienifr/fix/32555
Browse files Browse the repository at this point in the history
Fix: Inconsistency of spacing in thread title
  • Loading branch information
techievivek authored Jan 15, 2024
2 parents 9e3492d + 2d7ae8b commit f268c39
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/DisplayNames/DisplayNamesWithTooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {View} from 'react-native';
import Text from '@components/Text';
import Tooltip from '@components/Tooltip';
import useThemeStyles from '@hooks/useThemeStyles';
import * as ReportUtils from '@libs/ReportUtils';
import DisplayNamesTooltipItem from './DisplayNamesTooltipItem';
import type DisplayNamesProps from './types';

Expand Down Expand Up @@ -48,12 +49,12 @@ function DisplayNamesWithToolTip({shouldUseFullTitle, fullTitle, displayNamesWit
return (
// Tokenization of string only support prop numberOfLines on Web
<Text
style={[textStyles, styles.pRelative, numberOfLines === 1 ? styles.noWrap : {}]}
style={[textStyles, styles.pRelative]}
numberOfLines={numberOfLines || undefined}
ref={containerRef}
>
{shouldUseFullTitle
? fullTitle
? ReportUtils.formatReportLastMessageText(fullTitle)
: displayNamesWithTooltips.map(({displayName, accountID, avatar, login}, index) => (
// eslint-disable-next-line react/no-array-index-key
<Fragment key={index}>
Expand Down

0 comments on commit f268c39

Please sign in to comment.