修复输入框聚焦页面放大的问题

This commit is contained in:
北枳 2025-09-28 21:11:52 +08:00
parent f92135d155
commit dd63923e97
2 changed files with 7 additions and 7 deletions

View File

@ -305,4 +305,8 @@ body {
height: 100dvh;
height: calc(var(--vh, 1vh) * 100);
}
}
textarea, input {
font-size: 16px !important;
}

View File

@ -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;