diff --git a/apps/mobile/lib/pages/share_qr_dialog.dart b/apps/mobile/lib/pages/share_qr_dialog.dart index 2ace2a6..6d4ca60 100644 --- a/apps/mobile/lib/pages/share_qr_dialog.dart +++ b/apps/mobile/lib/pages/share_qr_dialog.dart @@ -448,8 +448,11 @@ class _PosterSheetState extends ConsumerState<_PosterSheet> { Padding( padding: const EdgeInsets.all(kSpace24), child: Column( + // 标题/时间/地址居左(Column 默认 center 会吞掉 + // Text 的 textAlign——对齐由这里统一决定)。 + crossAxisAlignment: CrossAxisAlignment.start, children: [ - // 活动标题(居左;二维码保持居中)。 + // 活动标题(居左)。 Text( title, textAlign: TextAlign.left, @@ -509,18 +512,22 @@ class _PosterSheetState extends ConsumerState<_PosterSheet> { ), ], const SizedBox(height: kSpace24), - // 二维码(白底保持扫码对比度)。 - QrImageView( - data: url, - version: QrVersions.auto, - size: 200, - backgroundColor: Colors.white, + // 二维码 + 说明:保持居中(文字区居左的例外)。 + Center( + child: QrImageView( + data: url, + version: QrVersions.auto, + size: 200, + backgroundColor: Colors.white, + ), ), const SizedBox(height: kSpace12), - Text( - l10n.shareScanHint, - style: theme.textTheme.bodySmall?.copyWith( - color: const Color(0xFF69778E), + Center( + child: Text( + l10n.shareScanHint, + style: theme.textTheme.bodySmall?.copyWith( + color: const Color(0xFF69778E), + ), ), ), ], diff --git a/apps/viewer/e2e/embed-v2.spec.ts b/apps/viewer/e2e/embed-v2.spec.ts index 0cc4b0a..89fa126 100644 --- a/apps/viewer/e2e/embed-v2.spec.ts +++ b/apps/viewer/e2e/embed-v2.spec.ts @@ -370,9 +370,7 @@ test.describe.serial('E04 interactions: pause, click lock, keyboard, destroy', ( await frame.waitFor(); const inside = page.frameLocator('iframe[src*="/embed/"][src*="v=2"]'); await page.waitForTimeout(1200); - // 聚焦流区域(点击视口非链接处不触发照片点击——顶部渐隐带命中视口)。 - const box = await frame.boundingBox(); - await page.mouse.click((box!.x ?? 0) + 90, (box!.y ?? 0) + 6); + // 聚焦流区域(程序化聚焦,不点击——照片点击现会打开宿主详情弹框)。 await inside.locator('.stream-viewport').focus(); await page.keyboard.press(' '); await page.waitForTimeout(300); diff --git a/docs/designs/ui04-implementation/actual/server/photo-modal.png b/docs/designs/ui04-implementation/actual/server/photo-modal.png index 7f25a9a..530eea6 100644 Binary files a/docs/designs/ui04-implementation/actual/server/photo-modal.png and b/docs/designs/ui04-implementation/actual/server/photo-modal.png differ diff --git a/docs/designs/ui04-implementation/recordings/e03-scroll-32s.webm b/docs/designs/ui04-implementation/recordings/e03-scroll-32s.webm index 2da61b0..586bc53 100644 Binary files a/docs/designs/ui04-implementation/recordings/e03-scroll-32s.webm and b/docs/designs/ui04-implementation/recordings/e03-scroll-32s.webm differ