From dddbd3bfa2e41fe0b52093c16d6a392cbd78d80a Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Mon, 31 Aug 2026 15:11:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(editing):=20=E6=A8=A1=E6=9D=BF=E7=89=87?= =?UTF-8?q?=E6=AE=B5=E6=97=B6=E9=95=BF=E4=BB=8E=E8=8C=83=E5=9B=B4=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E5=9B=BA=E5=AE=9A=E5=80=BC=20(#1571)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: xiaoxia Co-committed-by: xiaoxia --- .../hooks/template-management/useTemplateSave.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/src/pages/editing-planner/hooks/template-management/useTemplateSave.ts b/apps/web/src/pages/editing-planner/hooks/template-management/useTemplateSave.ts index d4f03146f..d6c0d162f 100644 --- a/apps/web/src/pages/editing-planner/hooks/template-management/useTemplateSave.ts +++ b/apps/web/src/pages/editing-planner/hooks/template-management/useTemplateSave.ts @@ -98,8 +98,8 @@ export function useTemplateSave(options: UseTemplateSaveOptions) { estimated_duration: totalDuration, segments: clips.map((c, i) => ({ segment_order: i, - duration_min: Math.max(1, c.duration - 2), - duration_max: c.duration + 2, + duration_min: c.duration, + duration_max: c.duration, material_type: c.type === "voice" ? "voiceover" : "video", transition: c.transition ? { type: c.transition.type, duration: c.transition.duration }