Skip to content

Commit f76e21b

Browse files
fix(mobile): inset comments describe the manual contentInset path
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent eb39186 commit f76e21b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/mobile/src/components/ui/useBarInset.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function useBarOverlap(): number {
4040
/**
4141
* The content's top safe area under the AppBar: the height of the iOS bar its column lays content
4242
* under, glass or solid, and zero on Android, where the bar sits in flow. For manual scroll
43-
* content insets, where UIKit's automatic one is off.
43+
* content insets.
4444
*/
4545
export function useContentTopInset(): number {
4646
const insets = useSafeAreaInsets();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2775,7 +2775,7 @@ export const ThreadFeed = memo(function ThreadFeed(props: ThreadFeedProps) {
27752775
const bottomContentInset = props.contentBottomInset ?? 18;
27762776
const usesNativeAutomaticInsets =
27772777
props.usesAutomaticContentInsets === true && Platform.OS === "ios";
2778-
// Without UIKit's automatic inset, a spacer clears the solid bar the column lays content under.
2778+
// Without the native contentInset, a list-header spacer clears the bar the column lays content under.
27792779
const topContentInset = usesNativeAutomaticInsets ? 0 : columnTopInset;
27802780
const anchorTopInset = usesNativeAutomaticInsets ? barInset : topContentInset;
27812781

0 commit comments

Comments
 (0)