The best way to control Claude Code, Codex and more from any computer or phone
fix(web): Arabic and Hebrew artifact template cards read right to left (#36922)
Co-authored-by: Julius Marminge <julius0216@outlook.com>
nasser committed
Nov 15, 2026 at 00:37 UTC
fa647599e0aecbe3b502201bce18c16f06f00fd4
2 files changed
+8
-1
apps/mobile/src/features/threads/ThreadFeed.tsx
+6
-1
@@ -96,6 +96,7 @@ import { CHAT_LIST_ANCHOR_OFFSET, resolveChatListAnchoredEndSpace } from "@t3too
96
import { imageMimeType } from "@t3tools/shared/image";
97
import { videoMimeType } from "@t3tools/shared/video";
98
import { SymbolView, type AppSymbolName } from "../../components/ui/AppSymbol";
99
+import { textDirection } from "@t3tools/shared/textDirection";
100
import { useFocusEffect, useNavigation } from "@react-navigation/native";
101
import { useNativeWorkspaceColumnsSupported } from "../../native/NativeWorkspaceColumns";
102
import { useDeviceType } from "../../native/native-layout-metrics";
@@ -1124,8 +1125,12 @@ function ArtifactTemplateCard(props: {
1125
readonly template: CodexArtifactTemplate;
1126
readonly onUse?: ((template: CodexArtifactTemplate) => void) | undefined;
1127
}) {
1128
+ const direction = textDirection(props.template.displayName);
1129
return (
1128
- <View className="my-2 min-w-0 flex-row items-center gap-3 rounded-2xl border border-border bg-card px-3 py-3">
1130
+ <View
1131
+ className="my-2 min-w-0 flex-row items-center gap-3 rounded-2xl border border-border bg-card px-3 py-3"
1132
+ style={direction ? { direction } : undefined}
1133
+ >
1134
<View className="h-10 w-10 shrink-0 items-center justify-center rounded-xl border border-border bg-subtle">
1135
<SymbolView
1136
name={ARTIFACT_TEMPLATE_SYMBOL_BY_KIND[props.template.artifactKind]}
apps/web/src/components/ChatMarkdown.tsx
+2
@@ -185,6 +185,7 @@ import {
185
import { resolvePullRequestPreviewTarget } from "@t3tools/client-runtime/change-request-links";
186
import { sourceControlClients } from "@t3tools/client-runtime/source-control-clients";
187
import { useOpenChangeRequestLink } from "~/lib/openPullRequestLink";
188
+import { textDirection } from "~/textDirection";
189
import { useOpenLink } from "../browser/useOpenLink";
190
import { writeTextToClipboard } from "../hooks/useCopyToClipboard";
191
import { isPreviewAvailableFor } from "../browser/previewRuntime";
@@ -300,6 +301,7 @@ function CodexArtifactTemplateCard(props: {
301
<div
302
role="group"
303
aria-label={`${props.template.displayName} template`}
304
+ dir={textDirection(props.template.displayName)}
305
data-chat-markdown-artifact-template
306
className="my-[0.65rem] flex w-full min-w-0 items-center gap-3 rounded-xl border border-border/70 bg-card/60 px-3 py-2.5 text-foreground shadow-xs"
307
data-artifact-kind={props.template.artifactKind}