优化脚本
This commit is contained in:
@@ -286,12 +286,6 @@ export function VideoRemixPage({ textModels = [], onNotify, onBack, navigate }:
|
||||
if (blobPreviewUrl) URL.revokeObjectURL(blobPreviewUrl);
|
||||
}, [blobPreviewUrl]);
|
||||
|
||||
useEffect(() => {
|
||||
const el = promptRef.current;
|
||||
if (!el || !hasResult) return;
|
||||
el.style.height = "auto";
|
||||
el.style.height = `${Math.max(132, el.scrollHeight)}px`;
|
||||
}, [prompt, hasResult]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!pollId) return;
|
||||
|
||||
@@ -393,8 +393,10 @@
|
||||
|
||||
.vr-page .remix-prompt-panel .analysis-prompt {
|
||||
width: 100%;
|
||||
min-height: 132px;
|
||||
overflow-y: hidden;
|
||||
height: 162px;
|
||||
min-height: 162px;
|
||||
max-height: 162px;
|
||||
overflow-y: auto;
|
||||
resize: none;
|
||||
padding: 15px;
|
||||
border: 1px solid rgba(0, 47, 167, 0.14);
|
||||
@@ -1304,8 +1306,9 @@
|
||||
|
||||
.vr-page .remix-history-prompt textarea {
|
||||
width: 100%;
|
||||
min-height: 360px;
|
||||
max-height: 560px;
|
||||
height: 162px;
|
||||
min-height: 162px;
|
||||
max-height: 162px;
|
||||
display: block;
|
||||
resize: none;
|
||||
overflow-y: auto;
|
||||
|
||||
Reference in New Issue
Block a user