优化脚本

This commit is contained in:
Azmat@qq.com
2026-08-31 11:57:34 +08:00
parent f59e9d0418
commit cbd4f362d9
20 changed files with 261 additions and 74 deletions
-6
View File
@@ -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;
+7 -4
View File
@@ -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;