fix(workshop): AI创作弹窗v6.2 输入框默认两行空间(min-height 30→60+rows=2)

This commit is contained in:
maogeigei committed 2026-09-02 16:50:59 +08:00
1 parent cd0f876785
commit c25e56dee9
3 files changed
+16 -2

No files matched your search

@@ -229,7 +229,7 @@ async function confirmAiScript(accountName, btn) {
<div class="req-attach-row" id="attachRow"></div>
<div class="req-bar">
<div class="req-input-box">
<textarea id="reqInput" class="req-input" rows="1" placeholder="说说你的想法,例如:想拍一个亲子互动的搞笑短剧…(也可以先上传需求文档)"></textarea>
<textarea id="reqInput" class="req-input" rows="2" placeholder="说说你的想法,例如:想拍一个亲子互动的搞笑短剧…(也可以先上传需求文档)"></textarea>
<div class="req-input-toolbar">
<button type="button" class="req-paper" id="reqPaper" title="上传需求附件(doc / docx / txt / pdf)">${svgIcon('paperclip', 17)}</button>
<div class="req-spacer"></div>
@@ -261,7 +261,8 @@ main { height: calc(100vh - 54px); }
width: 100%; box-sizing: border-box;
border: none; outline: none; resize: none; background: transparent;
font-size: 14px; font-family: inherit; line-height: 1.5;
min-height: 30px; max-height: 100px;
/* 默认两行输入空间(行高 21px × 2 + padding 16 = 58 → 取 60 留 2px 余量) */
min-height: 60px; max-height: 100px;
padding: 10px 14px 6px;
}
.req-input::placeholder { color: #a6aebc; }