diff options
author | Hailey <me@haileyok.com> | 2024-07-08 10:06:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-08 18:06:00 +0100 |
commit | f8a59e10dd347e9187aa4414a0ece04eff3b9bc3 (patch) | |
tree | a689cdf9271a356113ace131aff0cd2bae68f7a5 /src/view/com/notifications | |
parent | d5503d17de4a3b8f2d769f7819baf47cf9b0a209 (diff) | |
download | voidsky-f8a59e10dd347e9187aa4414a0ece04eff3b9bc3.tar.zst |
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
Diffstat (limited to 'src/view/com/notifications')
-rw-r--r-- | src/view/com/notifications/FeedItem.tsx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/view/com/notifications/FeedItem.tsx b/src/view/com/notifications/FeedItem.tsx index 1932efbd5..d31962ff3 100644 --- a/src/view/com/notifications/FeedItem.tsx +++ b/src/view/com/notifications/FeedItem.tsx @@ -58,6 +58,7 @@ import {useNavigation} from '@react-navigation/native' import {parseTenorGif} from '#/lib/strings/embed-player' import {logger} from '#/logger' import {NavigationProp} from 'lib/routes/types' +import {forceLTR} from 'lib/strings/bidi' import {DM_SERVICE_HEADERS} from 'state/queries/messages/const' import {useAgent} from 'state/session' import {Button, ButtonText} from '#/components/Button' @@ -274,13 +275,15 @@ let FeedItem = ({ showDmButton={item.type === 'starterpack-joined' || isFollowBack} /> <ExpandedAuthorsList visible={isAuthorsExpanded} authors={authors} /> - <Text style={styles.meta}> + <Text style={[styles.meta, a.self_start]}> <TextLink key={authors[0].href} style={[pal.text, s.bold]} href={authors[0].href} - text={sanitizeDisplayName( - authors[0].profile.displayName || authors[0].profile.handle, + text={forceLTR( + sanitizeDisplayName( + authors[0].profile.displayName || authors[0].profile.handle, + ), )} disableMismatchWarning /> |