diff --git a/src/components/AIChatPanel.tsx b/src/components/AIChatPanel.tsx index 5122dc6..4bb5e66 100644 --- a/src/components/AIChatPanel.tsx +++ b/src/components/AIChatPanel.tsx @@ -106,8 +106,8 @@ export default function AIChatPanel({ }; checkMobile(); - // 聚焦输入框 - if (inputRef.current) { + // 只在非移动设备上聚焦输入框 + if (inputRef.current && window.innerWidth >= 768) { inputRef.current.focus(); } diff --git a/src/components/VideoCard.tsx b/src/components/VideoCard.tsx index f1720ef..2951e5b 100644 --- a/src/components/VideoCard.tsx +++ b/src/components/VideoCard.tsx @@ -593,8 +593,11 @@ const VideoCard = forwardRef(function VideoCard label: 'AI问片', icon: , onClick: () => { - setShowMobileActions(false); // 关闭菜单 - setShowAIChat(true); + setShowMobileActions(false); + // 延迟打开 AIChatPanel,确保 MobileActionSheet 完全清理完成 + setTimeout(() => { + setShowAIChat(true); + }, 250); }, color: 'default' as const, }); @@ -860,7 +863,7 @@ const VideoCard = forwardRef(function VideoCard return false; }} > - {actualYear} + {actualYear.slice(-2)} )} @@ -903,7 +906,7 @@ const VideoCard = forwardRef(function VideoCard {actualEpisodes && actualEpisodes > 1 && orientation === 'vertical' && (