Skip to content

Commit 379f72d

Browse files
fix(mobile): the unfolded Duo keeps its header in portrait
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent d14ace8 commit 379f72d

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

‎apps/mobile/src/native/V5StackHeader.ios.tsx‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,15 @@ export function V5StackHeader(props: {
282282
backButtonHidden={options.headerBackVisible === false}
283283
ios={{
284284
navigationItemStyle: options.unstable_navigationItemStyle,
285-
// Opt-ins apply only on the Duo's short display; unset falls back to the system default.
286-
minimizationBehavior: isDuoDevice(deviceType)
287-
? options.unstable_headerMinimizationBehavior
288-
: undefined,
285+
// Opt-ins apply only where the Duo is short: folded, or held landscape. The Duo
286+
// resolves `automatic` to minimize on scroll, so the tall unfolded display opts out.
287+
minimizationBehavior: !isDuoDevice(deviceType)
288+
? undefined
289+
: deviceType === "duo-unfolded" &&
290+
nativeMetrics &&
291+
nativeMetrics.height > nativeMetrics.width
292+
? "never"
293+
: options.unstable_headerMinimizationBehavior,
289294
tintColor: options.headerTintColor,
290295
searchBar:
291296
mailSearch || searchOptions ? (

0 commit comments

Comments
 (0)