diff --git a/components/HomeBanner.tsx b/components/HomeBanner.tsx index 90f0e7c..1995b3d 100644 --- a/components/HomeBanner.tsx +++ b/components/HomeBanner.tsx @@ -2,7 +2,7 @@ import { useEffect, useState, useRef } from "react"; import { fetchSettingByCode } from "@/api/serversetting"; -import { X, ChevronUp, ChevronDown } from "lucide-react"; +import { X, ChevronUp, ChevronsDown } from "lucide-react"; import { ChatInputBox } from "@/components/ChatInputBox/ChatInputBox"; import { VideoCreationForm } from '@/components/pages/create-video/CreateInput'; @@ -194,11 +194,6 @@ export default function HomeBanner() { - {isFlying ? ( - - ) : null} {eyebrow ? ( {eyebrow} @@ -235,6 +230,12 @@ export default function HomeBanner() { ) ) : null} + + {isFlying ? ( + + ) : null} {/* Base content - always present under the banner */} diff --git a/components/pages/create-video/CreateInput/VideoCreationForm.tsx b/components/pages/create-video/CreateInput/VideoCreationForm.tsx index 7fa89ab..5a6345b 100644 --- a/components/pages/create-video/CreateInput/VideoCreationForm.tsx +++ b/components/pages/create-video/CreateInput/VideoCreationForm.tsx @@ -81,6 +81,7 @@ export default function VideoCreationForm() { const characterInputRef = useRef(null); const sceneInputRef = useRef(null); const propInputRef = useRef(null); + const mainTextInputRef = useRef(null); const { uploadFile } = useUploadFile(); /** Clear current template related states */ @@ -105,6 +106,9 @@ export default function VideoCreationForm() { setInputPlaceholder(template.generateText || template.name); setTemplateTitle(template.name); handleConfigChange('pcode', template.pcode || ''); + setTimeout(() => { + mainTextInputRef.current?.focus(); + }, 0); }; /** Handle file upload */ @@ -346,10 +350,10 @@ export default function VideoCreationForm() { {/* Main Content Area with Border */}
{templateTitle && ( -
+
{templateTitle}
@@ -374,14 +378,23 @@ export default function VideoCreationForm() { />
)} - + {/* Template Description */} + {inputPlaceholder && ( +
+
{inputPlaceholder}
+
+ )} {/* Text Input Area - Middle */} {shouldShowInput && ( -
+
+ {isTemplateSelected?.freeInput[0].input_name && ( +
{isTemplateSelected?.freeInput[0].input_name}
+ )}