style(workshop): 时长选项标签改『时长』/默认『自动』+ 修复秒数输入框 hidden 被 display 覆盖一直显示问题(选自定义才显示)
This commit is contained in:
1 parent
5aa9ef27f6
commit
10545fa4f5
2 files changed
+4
-3
No files matched your search
@@ -197,7 +197,7 @@ function reqMdOf(w) {
|
||||
function reqLines(w) {
|
||||
const lines = REQ_FIELDS.filter(([k]) => String(w[k] || '').trim()).map(([k, label]) => `- ${label}:${String(w[k]).trim()}`);
|
||||
const dur = String(w.dur || '').trim();
|
||||
if (dur) lines.push(`- 时长目标:${dur}`);
|
||||
if (dur) lines.push(`- 时长:${dur}`);
|
||||
return lines;
|
||||
}
|
||||
// 组装创作 prompt:人设块在前(既有铁律),需求+附件素材在后;空维度不输出由 AI 自主决策
|
||||
@@ -246,9 +246,9 @@ async function confirmAiScript(accountName, btn) {
|
||||
<div class="req-sheet" id="reqSheet"></div>
|
||||
</div>
|
||||
<div class="req-opts">
|
||||
<span class="opts-label">时长目标</span>
|
||||
<span class="opts-label">时长</span>
|
||||
<select id="reqDur" class="input-select req-dur-sel">
|
||||
<option value="">未指定(由 AI 定)</option>
|
||||
<option value="">自动</option>
|
||||
<option value="30">30 秒</option>
|
||||
<option value="60">60 秒</option>
|
||||
<option value="120">120 秒</option>
|
||||
|
||||
@@ -254,6 +254,7 @@ main { height: calc(100vh - 54px); }
|
||||
.req-dur-sel { flex: none; width: 168px; }
|
||||
.req-dur-num { flex: none; width: 76px; }
|
||||
.req-dur-custom { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--dim); }
|
||||
.req-dur-custom[hidden] { display: none; } /* 防 display 覆盖 hidden:默认隐藏,选中自定义才显示 */
|
||||
/* 提交创作确认弹窗 */
|
||||
.req-confirm-label { font-size: 13px; color: var(--dim); margin: 10px 0 6px; }
|
||||
.req-confirm-box {
|
||||
|
||||
Reference in new issue
Block a user