添加失败文案

This commit is contained in:
北枳 2025-10-09 16:36:04 +08:00
parent aac7ccb4e0
commit 8b4604ba07

View File

@ -559,8 +559,15 @@ export const MediaViewer = React.memo(function MediaViewer({
)}
{/* 生成失败 */}
{taskObject.videos.data[currentSketchIndex].video_status === 2 && (
<div className="absolute inset-0 bg-[#fcb0ba1a] flex items-center justify-center">
<div className="absolute inset-0 bg-[#fcb0ba1a] flex flex-col items-center justify-center">
<img src={error_image.src} alt="error" className="w-12 h-12" />
{/* 文案 */}
<div className="text-white text-center">
<div className="text-sm font-medium" role="status" aria-live="polite" aria-busy="true">
Failed
</div>
<div className="text-xs text-white/60 mt-1">Violation of security policy. Please modify your prompt and regenerate.</div>
</div>
</div>
)}
</div>