From f8a59e10dd347e9187aa4414a0ece04eff3b9bc3 Mon Sep 17 00:00:00 2001 From: Hailey Date: Mon, 8 Jul 2024 10:06:00 -0700 Subject: Fix RTL text rendering for display names (#4747) * header display name rtl support * highlighted post rtl * move `NON_BREAKING_SPACE` to an external constant * rtl support in search dropdown * profile card rtl * old profile card rtl * hover card * wizard list card * new chat * account card * chat header * clean up notifications * just force LTR on meta display name --- src/components/ProfileCard.tsx | 4 +++- src/components/ProfileHoverCard/index.web.tsx | 3 ++- src/components/StarterPack/Wizard/WizardListCard.tsx | 8 +++++++- src/components/dms/MessagesListHeader.tsx | 7 ++++++- src/components/dms/dialogs/SearchablePeopleList.tsx | 2 +- 5 files changed, 19 insertions(+), 5 deletions(-) (limited to 'src/components') diff --git a/src/components/ProfileCard.tsx b/src/components/ProfileCard.tsx index 79f1108cb..8bc9376e0 100644 --- a/src/components/ProfileCard.tsx +++ b/src/components/ProfileCard.tsx @@ -166,7 +166,9 @@ export function NameAndHandle({ return ( - + {name} - + {sanitizeDisplayName( profile.displayName || sanitizeHandle(profile.handle), moderation.ui('displayName'), diff --git a/src/components/StarterPack/Wizard/WizardListCard.tsx b/src/components/StarterPack/Wizard/WizardListCard.tsx index aa1b2cf9b..55cf0f02b 100644 --- a/src/components/StarterPack/Wizard/WizardListCard.tsx +++ b/src/components/StarterPack/Wizard/WizardListCard.tsx @@ -78,7 +78,13 @@ function WizardListCard({ /> {displayName} diff --git a/src/components/dms/MessagesListHeader.tsx b/src/components/dms/MessagesListHeader.tsx index 8bf673d30..7b9f1a3a0 100644 --- a/src/components/dms/MessagesListHeader.tsx +++ b/src/components/dms/MessagesListHeader.tsx @@ -168,7 +168,12 @@ function HeaderReady({ {displayName} diff --git a/src/components/dms/dialogs/SearchablePeopleList.tsx b/src/components/dms/dialogs/SearchablePeopleList.tsx index d92ea6835..a13dfe509 100644 --- a/src/components/dms/dialogs/SearchablePeopleList.tsx +++ b/src/components/dms/dialogs/SearchablePeopleList.tsx @@ -395,7 +395,7 @@ function ProfileCard({ /> {displayName} -- cgit 1.4.1