Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(mobile): preserve compact onboarding title space

DavidShended2c33ebde0
diff --git a/apps/mobile/src/platform/chrome/HomeNativeStackHeader.tsx b/apps/mobile/src/platform/chrome/HomeNativeStackHeader.tsx
index eb5a569f74..0562660839 100644
--- a/apps/mobile/src/platform/chrome/HomeNativeStackHeader.tsx
+++ b/apps/mobile/src/platform/chrome/HomeNativeStackHeader.tsx
@@ -68,10 +68,12 @@ export function HomeNativeStackHeader({
const { width } = useSafeAreaFrame();
const insets = useSafeAreaInsets();
// Keep the native title view's width independent of the selected device and
- // sync indicator. Reserve the two-action toolbar, outer margin and UIKit's
- // title clearance on both sides. Without the extra clearance, iOS 26 moves
+ // sync indicator. The guide only has the left menu; otherwise reserve the
+ // two-action toolbar. Mirror that space, outer margin and UIKit's title
+ // clearance on both sides. Without the extra clearance, iOS 26 moves
// an otherwise centered title toward the leading edge to avoid the toolbar.
- const sideSpace = navigationChrome.target * 2 + spacing.lg * 2 + spacing.md;
+ const actionCount = showRemoteGuide ? 1 : 2;
+ const sideSpace = navigationChrome.target * actionCount + spacing.lg * 2 + spacing.md;
const titleWidth = Math.max(navigationChrome.target,
Math.min(220, width - insets.left - insets.right - sideSpace * 2));