Skip to content

Commit acf4d43

Browse files
fix(mobile): the thread feed keeps its settled width while the sidebar slides
Re-wrapping every frame made the feed wobble as the keyboard, the reflow, and the end pin moved it in the same frames. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent c2dc2c6 commit acf4d43

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎apps/mobile/src/features/layout/AdaptiveWorkspaceLayout.tsx‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,12 +1004,7 @@ function AdaptiveWorkspaceLayoutContent(
10041004
value={layout.usesSplitView && Platform.OS !== "android" ? renderedContentWidth : null}
10051005
>
10061006
<WorkspaceSettledContentWidthContext
1007-
value={
1008-
// Tracking the sidebar's edge, the feed follows its measured width instead.
1009-
Platform.OS === "android" && layout.usesSplitView && !keyboardHoldsSidebar
1010-
? contentTargetWidth
1011-
: null
1012-
}
1007+
value={Platform.OS === "android" && layout.usesSplitView ? contentTargetWidth : null}
10131008
>
10141009
{/* Compact Settings keeps the bottom navigation under all of its pages. */}
10151010
<SafeAreaInsetsContext

‎apps/mobile/src/features/threads/ThreadFeed.tsx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3132,7 +3132,12 @@ export const ThreadFeed = memo(function ThreadFeed({
31323132

31333133
return (
31343134
<PresentationSource identifier={fileShareSourceIdentifier} style={{ flex: 1 }}>
3135-
<View className="flex-1" onLayout={handleViewportLayout}>
3135+
{/* While the pane tracks a sliding sidebar, rows keep its settled width and re-wrap once. */}
3136+
<View
3137+
className="flex-1"
3138+
style={settledPaneWidth !== null ? { width: settledPaneWidth } : undefined}
3139+
onLayout={handleViewportLayout}
3140+
>
31363141
<View className="flex-1">
31373142
{/* oxlint-disable-next-line t3code/require-registered-list-scroll -- ThreadFeedScrollView is passed through the iOS-only spread below; the prop rejects undefined. */}
31383143
<KeyboardAwareLegendList

0 commit comments

Comments
 (0)