feat: show generation prompts in previews and fix fluid page layout

This commit is contained in:
2026-11-04 01:19:42 +08:00
parent bef8af53ed
commit 5f3cebcb38
8 changed files with 57 additions and 9 deletions
+7
View File
@@ -165,6 +165,10 @@
<button class="lb-nav" id="lbNext"><span class="ico" data-icon="chevronRight"></span></button>
</div>
<div class="lb-info" id="lbInfo"></div>
<div class="lb-prompt hidden" id="lbPrompt">
<b>提示词</b>
<div id="lbPromptText"></div>
</div>
<div style="display:flex;justify-content:flex-end">
<button class="btn btn-secondary btn-sm" id="lbDelete">删除图片</button>
<button class="btn btn-secondary btn-sm" id="lbClose">关闭</button>
@@ -301,6 +305,9 @@
"<span><b>供应商</b> " + esc(g.provider_name) + "</span>" +
"<span><b>大小</b> " + fmtBytes(g.bytes) + "</span>" +
"<span><b>时间</b> " + esc(g.created_at) + "</span>";
const prompt = typeof g.prompt === "string" ? g.prompt : "";
$("#lbPromptText").textContent = prompt;
$("#lbPrompt").classList.toggle("hidden", !prompt.trim());
$("#lightbox").classList.add("open");
}