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): Duo 竖屏预览正文不进入状态区

Dash110eaa0bc067
diff --git a/apps/mobile/src/session/usePreviewChromeFrame.ts b/apps/mobile/src/session/usePreviewChromeFrame.ts
index cc792c20b1..6eb028e216 100644
--- a/apps/mobile/src/session/usePreviewChromeFrame.ts
+++ b/apps/mobile/src/session/usePreviewChromeFrame.ts
@@ -15,5 +15,7 @@ export function usePreviewChromeFrame() {
const row = Platform.OS === 'ios'
? floatingTopRow({ ...window, insets }, HTML_BROWSER_CONTROL_SIZE)
: { top: insets.top, left: insets.left + spacing.md, right: insets.right + spacing.md, sharedStatusRow: false };
- return { ...row, bottom: insets.bottom, contentTop: row.top + HTML_BROWSER_CONTROL_SIZE + spacing.xs };
+ // Only the chrome row shares the status row; content stays below the status area.
+ const contentTop = Math.max(insets.top, row.top + HTML_BROWSER_CONTROL_SIZE + spacing.xs);
+ return { ...row, bottom: insets.bottom, contentTop };
}