Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(mobile): 文件预览里的音视频播放器高度塌成 0,看不到画面也点不了播放
Lizi4aace25722b6
diff --git a/apps/mobile/app/files/preview/[sessionId].tsx b/apps/mobile/app/files/preview/[sessionId].tsxindex 20e05bf8ea..329ae1c5e9 100644--- a/apps/mobile/app/files/preview/[sessionId].tsx+++ b/apps/mobile/app/files/preview/[sessionId].tsx@@ -1553,7 +1553,8 @@ const makeStyles = (colors: ThemeColors) => {imageFull: { height: '100%', width: '100%' },imageStateWrap: { alignItems: 'center', gap: spacing.md, paddingHorizontal: spacing.xl },avPage: { flex: 1, justifyContent: 'center', padding: spacing.lg },- avPlayer: { width: '100%' },+ // The player's WebView fills its wrapper (flex: 1); a width-only wrapper collapses it to 0 pt.+ avPlayer: { flex: 1, width: '100%' },imageUpgradeHint: {bottom: spacing.md,color: colors.textTertiary,diff --git a/apps/mobile/src/__tests__/filePreviewPagerWiring.test.ts b/apps/mobile/src/__tests__/filePreviewPagerWiring.test.tsindex 092c29b406..8d3e282513 100644--- a/apps/mobile/src/__tests__/filePreviewPagerWiring.test.ts+++ b/apps/mobile/src/__tests__/filePreviewPagerWiring.test.ts@@ -63,6 +63,13 @@ describe('remote file preview pager wiring', () => {expect(source).toContain('requestedAtRecoveryEpochRef.current >= recoveryEpoch');expect(source).toContain('setRequestEpoch((epoch) => epoch + 1)');});++ it('gives the audio/video player a definite height inside the preview page', () => {+ // RemoteMediaPlayerWebView fills its wrapper with flex: 1. A width-only wrapper+ // collapsed the player to 0 pt: media loaded, but no picture or controls to tap.+ expect(source).toMatch(/avPlayer: \{[^}]*\bflex: 1\b[^}]*\}/);+ expect(source).toContain('style={styles.avPlayer}');+ });});const htmlReaderSource = readSource('src/session/HtmlFileReader.tsx');