From cd0eaa2a8c3f482bfbd597d21b5d02c21b9fe0fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Jasikowski?= Date: Fri, 29 Nov 2024 11:54:23 +0100 Subject: [PATCH] Revert "Fix: Room name displayed truncated on header and details when using long name" --- src/components/MenuItem.tsx | 5 ----- src/pages/ReportDetailsPage.tsx | 2 -- 2 files changed, 7 deletions(-) diff --git a/src/components/MenuItem.tsx b/src/components/MenuItem.tsx index 19703f7a3c92..259ae3170825 100644 --- a/src/components/MenuItem.tsx +++ b/src/components/MenuItem.tsx @@ -345,9 +345,6 @@ type MenuItemBaseProps = { /** Should use auto width for the icon container. */ shouldIconUseAutoWidthStyle?: boolean; - - /** Should break word for room title */ - shouldBreakWord?: boolean; }; type MenuItemProps = (IconProps | AvatarProps | NoIcon) & MenuItemBaseProps; @@ -460,7 +457,6 @@ function MenuItem( shouldShowSelectedItemCheck = false, onHideTooltip, shouldIconUseAutoWidthStyle = false, - shouldBreakWord = false, }: MenuItemProps, ref: PressableRef, ) { @@ -486,7 +482,6 @@ function MenuItem( interactive && disabled ? {...styles.userSelectNone} : {}, styles.ltr, isDeleted ? styles.offlineFeedback.deleted : {}, - shouldBreakWord ? styles.breakWord : {}, ], titleStyle ?? {}, ); diff --git a/src/pages/ReportDetailsPage.tsx b/src/pages/ReportDetailsPage.tsx index b498fcd37e36..8bf3da6e33e0 100644 --- a/src/pages/ReportDetailsPage.tsx +++ b/src/pages/ReportDetailsPage.tsx @@ -744,8 +744,6 @@ function ReportDetailsPage({policies, report, route, reportMetadata}: ReportDeta description={!shouldDisableRename ? roomDescription : ''} furtherDetails={chatRoomSubtitle && !isGroupChat ? additionalRoomDetails : ''} onPress={() => Navigation.navigate(ROUTES.REPORT_SETTINGS_NAME.getRoute(report.reportID, backTo))} - numberOfLinesTitle={0} - shouldBreakWord />