From 368a09beed8853e051ff48f83ebd657e28fcdf42 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Mon, 10 Aug 2026 11:18:13 -0700 Subject: [PATCH] Compute the timeline's remaining width from contentSize, which includes the sidebar overlap, so the sidebar-compensating inset doesn't drop out and let the timeline render under the sidebar. --- iOS/MainTimeline/MainTimelineModernViewController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iOS/MainTimeline/MainTimelineModernViewController.swift b/iOS/MainTimeline/MainTimelineModernViewController.swift index 1bd0e5dfb..a8438758e 100644 --- a/iOS/MainTimeline/MainTimelineModernViewController.swift +++ b/iOS/MainTimeline/MainTimelineModernViewController.swift @@ -845,7 +845,8 @@ private extension MainTimelineModernViewController { /// Note to future self: apply insets that affect cell width /// calculations (leading swipe actions with sidebar visible) let sidebarOverlapWidth = layoutEnvironment.container.contentInsets.leading - let remainingWidth = layoutEnvironment.container.effectiveContentSize.width - sidebarOverlapWidth + // container.contentSize includes the width under the sidebar. + let remainingWidth = layoutEnvironment.container.contentSize.width - sidebarOverlapWidth section.contentInsets = NSDirectionalEdgeInsets( top: 0, leading: remainingWidth > 0 ? sidebarOverlapWidth : 0,