Skip to content

Commit

Permalink
fix: uneven spacing in thread title
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Jan 9, 2024
1 parent 26b4006 commit 2d7ae8b
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 2d7ae8b

Please sign in to comment.