TypeScript
fix(mobile): prevent overlapping text and UI on Android chat messages (#11611)
James C8db3c250f41e
diff --git a/apps/mobile/src/features/threads/ThreadFeed.tsx b/apps/mobile/src/features/threads/ThreadFeed.tsxindex 585354f7baf..a860612cb92 100644--- a/apps/mobile/src/features/threads/ThreadFeed.tsx+++ b/apps/mobile/src/features/threads/ThreadFeed.tsx@@ -627,6 +627,7 @@ const markdownLinkStyles = StyleSheet.create({height: 14,marginHorizontal: 3,transform: [{ translateY: 2 }],+ flexShrink: 0,},favicon: {borderRadius: 3,@@ -1155,7 +1156,7 @@ function useMarkdownStyles(>{ordered ? `${start + index}.` : "•"}</NativeText>- <View className="min-w-0 flex-1">+ <View className="min-w-0 flex-1 shrink overflow-hidden"><Renderer node={child} depth={1} inListItem parentIsText={false} /></View></View>@@ -1684,10 +1685,14 @@ function renderFeedEntry(return null;}+ // Assistant messages hit the same Android unclamped-pass bug as user+ // bubbles: wide markdown blocks cause children to be positioned at+ // intrinsic width before the container is clamped, overlapping the+ // timestamp/copy button row. Pinning the width removes that pass.const enterAnimated = isFreshTimestamp(message.createdAt);return (<Animated.View- className={cn(showAssistantMeta ? "mb-5 px-1" : "mb-1 px-1")}+ className={cn(showAssistantMeta ? "mb-5 px-1" : "mb-1 px-1", hasWideBlock && "w-full")}{...(enterAnimated ? { entering: FadeIn.duration(220) } : {})}>{renderedText.trim().length > 0 ? (