forked from 77media/video-flow
修复输入框聚焦页面放大的问题
This commit is contained in:
parent
f92135d155
commit
dd63923e97
@ -305,4 +305,8 @@ body {
|
|||||||
height: 100dvh;
|
height: 100dvh;
|
||||||
height: calc(var(--vh, 1vh) * 100);
|
height: calc(var(--vh, 1vh) * 100);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
textarea, input {
|
||||||
|
font-size: 16px !important;
|
||||||
}
|
}
|
||||||
@ -348,13 +348,9 @@ export function ChatInputBox({ noData }: { noData: boolean }) {
|
|||||||
onChange={(e) => setScript(e.target.value)}
|
onChange={(e) => setScript(e.target.value)}
|
||||||
placeholder="Describe the story you want to make..."
|
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"
|
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={
|
style={{
|
||||||
noData
|
minHeight: noData ? "128px": "unset"
|
||||||
? {
|
}}
|
||||||
minHeight: "128px",
|
|
||||||
}
|
|
||||||
: {}
|
|
||||||
}
|
|
||||||
rows={1}
|
rows={1}
|
||||||
onInput={(e) => {
|
onInput={(e) => {
|
||||||
const target = e.target as HTMLTextAreaElement;
|
const target = e.target as HTMLTextAreaElement;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user