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 {