调整videocard样式并修复打开ai问片后无法关闭
This commit is contained in:
@@ -106,8 +106,8 @@ export default function AIChatPanel({
|
|||||||
};
|
};
|
||||||
checkMobile();
|
checkMobile();
|
||||||
|
|
||||||
// 聚焦输入框
|
// 只在非移动设备上聚焦输入框
|
||||||
if (inputRef.current) {
|
if (inputRef.current && window.innerWidth >= 768) {
|
||||||
inputRef.current.focus();
|
inputRef.current.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -593,8 +593,11 @@ const VideoCard = forwardRef<VideoCardHandle, VideoCardProps>(function VideoCard
|
|||||||
label: 'AI问片',
|
label: 'AI问片',
|
||||||
icon: <Sparkles size={20} />,
|
icon: <Sparkles size={20} />,
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
setShowMobileActions(false); // 关闭菜单
|
setShowMobileActions(false);
|
||||||
setShowAIChat(true);
|
// 延迟打开 AIChatPanel,确保 MobileActionSheet 完全清理完成
|
||||||
|
setTimeout(() => {
|
||||||
|
setShowAIChat(true);
|
||||||
|
}, 250);
|
||||||
},
|
},
|
||||||
color: 'default' as const,
|
color: 'default' as const,
|
||||||
});
|
});
|
||||||
@@ -860,7 +863,7 @@ const VideoCard = forwardRef<VideoCardHandle, VideoCardProps>(function VideoCard
|
|||||||
return false;
|
return false;
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{actualYear}
|
{actualYear.slice(-2)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
@@ -903,7 +906,7 @@ const VideoCard = forwardRef<VideoCardHandle, VideoCardProps>(function VideoCard
|
|||||||
|
|
||||||
{actualEpisodes && actualEpisodes > 1 && orientation === 'vertical' && (
|
{actualEpisodes && actualEpisodes > 1 && orientation === 'vertical' && (
|
||||||
<div
|
<div
|
||||||
className='absolute top-2 right-2 bg-green-500 text-white text-xs font-semibold px-2 py-1 rounded-md shadow-md transition-all duration-300 ease-out group-hover:scale-110'
|
className='absolute top-2 right-2 bg-green-500/70 text-white text-xs font-semibold px-2 py-1 rounded-md shadow-md transition-all duration-300 ease-out group-hover:scale-110'
|
||||||
style={{
|
style={{
|
||||||
WebkitUserSelect: 'none',
|
WebkitUserSelect: 'none',
|
||||||
userSelect: 'none',
|
userSelect: 'none',
|
||||||
|
|||||||
Reference in New Issue
Block a user