feat: show generation prompts in previews and fix fluid page layout
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
+5
-2
@@ -152,7 +152,7 @@ body[data-page="skills"] .app-nav a[data-nav="skills"] .nav-ico { color: var(--p
|
||||
.crumb h1 { font-size: 18px; }
|
||||
.top-actions { display: flex; align-items: center; gap: 8px; }
|
||||
|
||||
.page-body { padding: 24px; max-width: 1440px; width: 100%; }
|
||||
.page-body { padding: 24px; width: 100%; }
|
||||
|
||||
/* --------------------------------------------------------------- Animations */
|
||||
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
|
||||
@@ -378,7 +378,7 @@ table.tbl tbody tr:last-child td { border-bottom: none; }
|
||||
display: none; align-items: center; justify-content: center; z-index: 70; padding: 32px;
|
||||
}
|
||||
.lightbox.open { display: flex; }
|
||||
.lb-inner { max-width: 1100px; width: 100%; display: flex; flex-direction: column; gap: 12px; animation: rise .22s ease both; }
|
||||
.lb-inner { max-width: 1100px; width: 100%; max-height: calc(100vh - 64px); overflow-y: auto; display: flex; flex-direction: column; gap: 12px; animation: rise .22s ease both; }
|
||||
.lb-stage { display: flex; align-items: center; justify-content: center; gap: 16px; }
|
||||
.lb-stage img { max-height: 74vh; max-width: 100%; border-radius: var(--r-md); box-shadow: var(--sh-lg); }
|
||||
.lb-nav {
|
||||
@@ -389,6 +389,9 @@ table.tbl tbody tr:last-child td { border-bottom: none; }
|
||||
.lb-nav:hover { background: var(--surface-2); border-color: #3a4553; }
|
||||
.lb-info { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--text-sub); }
|
||||
.lb-info b { color: var(--text); font-weight: 600; }
|
||||
.lb-prompt { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); font-size: 12px; line-height: 1.7; }
|
||||
.lb-prompt b { display: block; margin-bottom: 6px; color: var(--text); }
|
||||
#lbPromptText { max-height: 160px; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-sub); }
|
||||
|
||||
/* ------------------------------------------------------------------ Statbox */
|
||||
.stat { padding: 14px 16px; }
|
||||
|
||||
Reference in New Issue
Block a user