Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): prevent overlapping text and UI on Android chat messages #11611

MergedExotic209093(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/11611/headmerged by juliusmarminge View on GitHub

Showing 1 changed file with 7 additions and 2 deletions.

x
0 of 1 viewed, 1 left
7 additions and 2 deletionsapps/mobile/src/features/threads/ThreadFeed.tsxModified
View file
@@ -615,6 +615,7 @@
height: 14,
marginHorizontal: 3,
transform: [{ translateY: 2 }],
+ flexShrink: 0,
favicon: {
borderRadius: 3,
@@ -1142,7 +1143,7 @@
{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>
@@ -1638,10 +1639,14 @@
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