From 2d7ae8bade9af5b79cad18b746bc107f40116a8a Mon Sep 17 00:00:00 2001 From: tienifr Date: Tue, 9 Jan 2024 16:13:06 +0700 Subject: [PATCH] fix: uneven spacing in thread title --- src/components/DisplayNames/DisplayNamesWithTooltip.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/DisplayNames/DisplayNamesWithTooltip.tsx b/src/components/DisplayNames/DisplayNamesWithTooltip.tsx index f22b1f0c2209..0d554baabeda 100644 --- a/src/components/DisplayNames/DisplayNamesWithTooltip.tsx +++ b/src/components/DisplayNames/DisplayNamesWithTooltip.tsx @@ -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'; @@ -48,12 +49,12 @@ function DisplayNamesWithToolTip({shouldUseFullTitle, fullTitle, displayNamesWit return ( // Tokenization of string only support prop numberOfLines on Web {shouldUseFullTitle - ? fullTitle + ? ReportUtils.formatReportLastMessageText(fullTitle) : displayNamesWithTooltips.map(({displayName, accountID, avatar, login}, index) => ( // eslint-disable-next-line react/no-array-index-key