From 5aaba4206831a82fef9ef7ac7943b0b1ed1ff518 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Wed, 6 May 2026 07:30:12 -0600 Subject: [PATCH] update --- src/components/ai/PromptHistoryPanel.vue | 46 +++++++++++++++++++++--- 1 file changed, 42 insertions(+), 4 deletions(-) diff --git a/src/components/ai/PromptHistoryPanel.vue b/src/components/ai/PromptHistoryPanel.vue index f3d9750..00ba1a1 100644 --- a/src/components/ai/PromptHistoryPanel.vue +++ b/src/components/ai/PromptHistoryPanel.vue @@ -35,7 +35,7 @@ @@ -54,11 +55,33 @@ justify="space-between" :wrap="false" > + + + #{{ index + 1 }} + + + {{ item.source === "manual" ? "手动提交" : "AI 对话" }} + + - {{ item.source === "manual" ? "手动提交" : "AI 对话" }} + 正在预览 {{ parseTime(item.created, "YYYY-MM-DD HH:mm") }} @@ -217,11 +240,26 @@ onMounted(() => { .history-card { cursor: pointer; + position: relative; + overflow: hidden; } .history-card.is-selected { + --n-border-color: #18a058; border-color: #18a058; - box-shadow: 0 8px 20px rgba(24, 160, 88, 0.18); + box-shadow: + 0 0 0 2px rgba(24, 160, 88, 0.35), + 0 12px 26px rgba(24, 160, 88, 0.24); + transform: translateY(-1px); +} + +.history-card.is-selected::before { + content: ""; + position: absolute; + inset: 0 auto 0 0; + width: 4px; + background: #18a058; + z-index: 1; } .history-main {