fix: 调整视频历史提示词样式与图片编辑按钮挂载

This commit is contained in:
XianYuDaXian committed 2026-03-13 21:41:57 +08:00
1 parent bf86ff98ba
commit f616188a4e
2 files changed
+19 -22

No files matched your search

+19
View File
@@ -170,6 +170,10 @@ body {
color: var(--accents-7);
}
.history-panel .video-item-prompt {
color: var(--accents-6);
}
.history-panel .video-item-bar {
display: block;
margin-bottom: 2px;
@@ -795,6 +799,20 @@ body {
color: #e2e8f0;
}
.video-item-prompt {
margin-top: 4px;
margin-bottom: 8px;
font-size: 12px;
line-height: 1.45;
color: rgba(226, 232, 240, 0.82);
white-space: normal;
word-break: break-word;
}
.video-item-prompt.hidden {
display: none;
}
.video-item-actions {
display: flex;
align-items: center;
@@ -1966,6 +1984,7 @@ html[data-theme='dark'] .cache-video-item {
html[data-theme='dark'] .history-panel .video-item-title,
html[data-theme='dark'] .history-panel .video-item-bar,
html[data-theme='dark'] .history-panel .video-item-prompt,
html[data-theme='dark'] .cache-video-item-title,
html[data-theme='dark'] .cache-video-item-meta {
color: #dbe5f0;
-22
View File
@@ -1870,29 +1870,7 @@
});
}
function mountInlineSubmitButton() {
if (!editPromptInput || !submitEditBtn) return false;
const promptWrap = editPromptInput.closest('.prompt-enhance-wrap');
if (!promptWrap) return false;
if (!promptWrap.contains(submitEditBtn)) {
const actionRow = submitEditBtn.parentElement;
promptWrap.appendChild(submitEditBtn);
if (actionRow && actionRow.classList && actionRow.classList.contains('action-row')) {
actionRow.classList.add('action-row-inline');
}
}
submitEditBtn.classList.add('inline-submit-btn');
return true;
}
function ensureInlineSubmitButton(attempt = 0) {
if (mountInlineSubmitButton()) return;
if (attempt >= 20) return;
setTimeout(() => ensureInlineSubmitButton(attempt + 1), 50);
}
function init() {
ensureInlineSubmitButton();
bindEvents();
syncPromptRichInputFromTextarea();
renderReferenceStrip();