diff --git a/apps/web/src/pages/ai-avatar/AiAvatar.css b/apps/web/src/pages/ai-avatar/AiAvatar.css index e77e7660b..1ebf148a6 100644 --- a/apps/web/src/pages/ai-avatar/AiAvatar.css +++ b/apps/web/src/pages/ai-avatar/AiAvatar.css @@ -484,7 +484,6 @@ margin-bottom: 12px; } - .aa-lipsync-preview { width: 100%; max-width: 240px; @@ -1249,4 +1248,3 @@ width: auto; min-width: 300px; } - diff --git a/apps/web/src/pages/ai-avatar/AiAvatarPage.tsx b/apps/web/src/pages/ai-avatar/AiAvatarPage.tsx index 3a3e113b5..7c5114a5f 100644 --- a/apps/web/src/pages/ai-avatar/AiAvatarPage.tsx +++ b/apps/web/src/pages/ai-avatar/AiAvatarPage.tsx @@ -211,14 +211,7 @@ const AiAvatarPage: React.FC = () => { state.setIsGenerating(false) } // eslint-disable-next-line react-hooks/exhaustive-deps - }, [ - state.lipsyncJob, - state.script, - state.bRollSegments, - state.titleConfig, - state.coverConfig, - - ]) + }, [state.lipsyncJob, state.script, state.bRollSegments, state.titleConfig, state.coverConfig]) /* ── 智能封面:调后端 MediaKit 选帧接口(#1822) ── */ const handleSmartCover = useCallback(async () => { @@ -375,7 +368,10 @@ const AiAvatarPage: React.FC = () => { ▼
- +
diff --git a/apps/web/src/pages/ai-avatar/components/PanelLipsyncPreview.tsx b/apps/web/src/pages/ai-avatar/components/PanelLipsyncPreview.tsx index d7acb0bad..920a51f40 100755 --- a/apps/web/src/pages/ai-avatar/components/PanelLipsyncPreview.tsx +++ b/apps/web/src/pages/ai-avatar/components/PanelLipsyncPreview.tsx @@ -34,8 +34,7 @@ export function PanelLipsyncPreview({ onRemoveBRoll, titleConfig, }: PanelLipsyncPreviewProps) { - const isGenerating = - lipsyncJob?.status === "pending" || lipsyncJob?.status === "processing" + const isGenerating = lipsyncJob?.status === "pending" || lipsyncJob?.status === "processing" const isDone = lipsyncJob?.status === "completed" const isFailed = lipsyncJob?.status === "failed" @@ -78,9 +77,7 @@ export function PanelLipsyncPreview({
🎞️ 插入画面 {bRollSegments.length > 0 && ( - - 🎬 {bRollSegments.length} 个画面 - + 🎬 {bRollSegments.length} 个画面 )}
@@ -104,10 +101,7 @@ export function PanelLipsyncPreview({ alt={seg.asset.name} /> ) : ( - + 🎬 )} @@ -189,11 +183,7 @@ export function PanelLipsyncPreview({
{isDone ? ( - ) : isGenerating ? ( diff --git a/apps/web/src/pages/ai-avatar/components/PanelScript.tsx b/apps/web/src/pages/ai-avatar/components/PanelScript.tsx index 87d28114a..cdee90fc5 100755 --- a/apps/web/src/pages/ai-avatar/components/PanelScript.tsx +++ b/apps/web/src/pages/ai-avatar/components/PanelScript.tsx @@ -55,9 +55,7 @@ export function PanelScript({ value={scriptText} readOnly={scriptTab === "library"} placeholder={ - scriptTab === "library" - ? "点击上方按钮,从文案库选择文案…" - : "请输入数字人口播文案…" + scriptTab === "library" ? "点击上方按钮,从文案库选择文案…" : "请输入数字人口播文案…" } onChange={(e) => onScriptTextChange(e.target.value)} />