From dd63923e979accf561d07e0b0028c6bbe1917fc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Sun, 28 Sep 2025 21:11:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=BE=93=E5=85=A5=E6=A1=86?= =?UTF-8?q?=E8=81=9A=E7=84=A6=E9=A1=B5=E9=9D=A2=E6=94=BE=E5=A4=A7=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/globals.css | 4 ++++ components/ChatInputBox/ChatInputBox.tsx | 10 +++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/globals.css b/app/globals.css index 29fa569..0e918bf 100644 --- a/app/globals.css +++ b/app/globals.css @@ -305,4 +305,8 @@ body { height: 100dvh; height: calc(var(--vh, 1vh) * 100); } +} + +textarea, input { + font-size: 16px !important; } \ No newline at end of file diff --git a/components/ChatInputBox/ChatInputBox.tsx b/components/ChatInputBox/ChatInputBox.tsx index dd530cd..598fbe7 100644 --- a/components/ChatInputBox/ChatInputBox.tsx +++ b/components/ChatInputBox/ChatInputBox.tsx @@ -348,13 +348,9 @@ export function ChatInputBox({ noData }: { noData: boolean }) { onChange={(e) => setScript(e.target.value)} placeholder="Describe the story you want to make..." className="w-full pl-[10px] pr-[10px] py-[14px] rounded-[10px] leading-[20px] text-sm border-none bg-transparent text-white placeholder:text-white/[0.40] focus:outline-none resize-none min-h-[48px] max-h-[120px] overflow-y-auto" - style={ - noData - ? { - minHeight: "128px", - } - : {} - } + style={{ + minHeight: noData ? "128px": "unset" + }} rows={1} onInput={(e) => { const target = e.target as HTMLTextAreaElement;