Skip to content

Commit

Permalink
Merge pull request #53311 from Expensify/revert-53041-patch-9
Browse files Browse the repository at this point in the history
[CP Staging] Revert "Fix: Room name displayed truncated on header and details when using long name"

(cherry picked from commit 7e7b7d7)

(CP triggered by mountiny)
  • Loading branch information
mjasikowski authored and OSBotify committed Nov 29, 2024
1 parent 43fe928 commit 420750e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions src/components/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -460,7 +457,6 @@ function MenuItem(
shouldShowSelectedItemCheck = false,
onHideTooltip,
shouldIconUseAutoWidthStyle = false,
shouldBreakWord = false,
}: MenuItemProps,
ref: PressableRef,
) {
Expand All @@ -486,7 +482,6 @@ function MenuItem(
interactive && disabled ? {...styles.userSelectNone} : {},
styles.ltr,
isDeleted ? styles.offlineFeedback.deleted : {},
shouldBreakWord ? styles.breakWord : {},
],
titleStyle ?? {},
);
Expand Down
2 changes: 0 additions & 2 deletions src/pages/ReportDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
/>
</View>
</OfflineWithFeedback>
Expand Down

0 comments on commit 420750e

Please sign in to comment.