Skip to content

Commit d41c4d8

Browse files
Neilsmahajanclaude
andcommitted
fix(mobile): iPad sidebar no longer hides its first thread before iOS 26
On iPadOS 18 the split-view sidebar list used contentInsetAdjustmentBehavior "never" with 6pt of top padding. Since the v5 stack migration the sidebar screen is laid out under its header even when the header is opaque, so the header and search field permanently covered the first row, and releasing a pull snapped it back out of view. Let UIKit apply the safe-area inset on every iOS version, as the iOS 26 path already did. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 5d27ecd commit d41c4d8

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import { AppText as Text } from "../../components/ui/AppText";
2525
import { CompactBrandTitle } from "../../components/CompactBrandTitle";
2626
import { Menu } from "../../components/ui/Menu";
2727
import { SymbolView } from "../../components/ui/AppSymbol";
28-
import { NATIVE_LIQUID_GLASS_SUPPORTED } from "../../native/native-glass";
2928
import { NativeStackScreenOptions } from "../../native/StackHeader";
3029
import { scopedProjectKey, scopedThreadKey } from "../../lib/scopedEntities";
3130
import { useProjects, useNavigationThreadShells } from "../../state/entities";
@@ -774,10 +773,10 @@ function ThreadNavigationSidebarPane(
774773
itemsAreEqual={sidebarItemsAreEqual}
775774
keyExtractor={(item) => item.key}
776775
renderItem={renderListItem}
777-
automaticallyAdjustsScrollIndicatorInsets={NATIVE_LIQUID_GLASS_SUPPORTED}
778-
contentInsetAdjustmentBehavior={
779-
NATIVE_LIQUID_GLASS_SUPPORTED ? "automatic" : "never"
780-
}
776+
// The v5 stack lays the list out under its header even when the
777+
// pre-iOS 26 header looks opaque; the safe-area inset clears it.
778+
automaticallyAdjustsScrollIndicatorInsets
779+
contentInsetAdjustmentBehavior="automatic"
781780
contentContainerStyle={[
782781
styles.threadListContent,
783782
Platform.OS === "android" ? { paddingHorizontal: 0 } : null,

0 commit comments

Comments
 (0)