diff --git a/components/ChatInputBox/ChatInputBox.tsx b/components/ChatInputBox/ChatInputBox.tsx index 598fbe7..4d16c53 100644 --- a/components/ChatInputBox/ChatInputBox.tsx +++ b/components/ChatInputBox/ChatInputBox.tsx @@ -244,6 +244,11 @@ export function ChatInputBox({ noData }: { noData: boolean }) { } }, []); + // H5 文本输入框聚焦动画控制 + const textareaRef = useRef(null); + const [isInputFocused, setIsInputFocused] = useState(false); + const [persistedMobileMaxHeight, setPersistedMobileMaxHeight] = useState(null); + const handleCreateVideo = async () => { if (isCreating) return; // 如果正在创建中,直接返回 @@ -342,23 +347,77 @@ export function ChatInputBox({ noData }: { noData: boolean }) {
{/* 第一行:输入框 */}
- {/* 文本输入框 - 改为textarea */} -