Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions apps/mobile/src/features/threads/ThreadFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,7 @@ const markdownLinkStyles = StyleSheet.create({
height: 14,
marginHorizontal: 3,
transform: [{ translateY: 2 }],
flexShrink: 0,
},
favicon: {
borderRadius: 3,
Expand Down Expand Up @@ -1142,7 +1143,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>
Expand Down Expand Up @@ -1638,10 +1639,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 ? (
Expand Down
Loading