Skip to content

Commit cd84f62

Browse files
committed
fix(mobile): left-align titles while preserving bidi text
1 parent 61e7c5e commit cd84f62

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎apps/mobile/src/features/threads/thread-list-v2-items.tsx‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import { canSnooze } from "@t3tools/client-runtime/state/thread-settled";
3131
import { threadChipCopyTarget } from "@t3tools/client-runtime/thread-reference";
3232
import type { MenuAction } from "@react-native-menu/menu";
3333
import { memo, useCallback, useMemo, useState, type ComponentProps } from "react";
34-
import { Pressable, useWindowDimensions, View } from "react-native";
34+
import { Pressable, useWindowDimensions, View, type TextStyle } from "react-native";
3535
import type { SwipeableMethods } from "react-native-gesture-handler/ReanimatedSwipeable";
3636

3737
import type { ThreadListProvider } from "../../state/thread-list-environments";
@@ -84,8 +84,11 @@ import { pullRequestStatus } from "../pull-requests/pullRequestStatus";
8484
import { textDirection } from "@t3tools/shared/textDirection";
8585

8686
function textDirectionStyle(text: string) {
87-
const direction = textDirection(text);
88-
return direction ? { direction, writingDirection: direction } : undefined;
87+
return {
88+
direction: "ltr",
89+
writingDirection: textDirection(text),
90+
textAlign: "left",
91+
} satisfies TextStyle;
8992
}
9093

9194
interface StatusLabel {

0 commit comments

Comments
 (0)