Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
fix(chat): align knowledge citation hover with outline cards
wizardchend69df50b7a87
diff --git a/frontend/src/components/ChatCitationFloat.vue b/frontend/src/components/ChatCitationFloat.vueindex b2a42b84f..60086d88b 100644--- a/frontend/src/components/ChatCitationFloat.vue+++ b/frontend/src/components/ChatCitationFloat.vue@@ -1,6 +1,7 @@<template><Teleport to="body">- <div v-if="float.visible" class="chat-citation-float" :style="{ top: `${float.top}px`, left: `${float.left}px` }"+ <div v-if="float.visible" class="chat-citation-float" :class="{ 'chat-citation-float--kb': float.type === 'kb' }"+ :style="{ top: `${float.top}px`, left: `${float.left}px` }"@mouseenter="onEnter?.()" @mouseleave="onLeave?.()"><template v-if="float.type === 'web'"><div class="chat-citation-float__title">{{ float.title || float.url }}</div>diff --git a/frontend/src/components/css/chat-citations.less b/frontend/src/components/css/chat-citations.lessindex e1bc2f341..c256442bb 100644--- a/frontend/src/components/css/chat-citations.less+++ b/frontend/src/components/css/chat-citations.less@@ -149,4 +149,39 @@&__error {color: var(--td-error-color);}++ &--kb {+ box-sizing: border-box;+ width: 264px;+ max-width: calc(100vw - 32px);+ padding: 12px 14px;+ border: 0.5px solid var(--td-component-stroke);+ border-radius: var(--app-radius-lg);+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.08);+ font-family: var(--app-font-family);+ font-size: var(--app-text-md);+ line-height: 1.6;+ overflow-wrap: anywhere;+ transition: background-color var(--app-motion-fast) ease;++ &:hover {+ background: var(--td-bg-color-container-hover);+ }++ .chat-citation-float__title {+ margin-bottom: 6px;+ font-weight: 500;+ color: var(--td-text-color-primary);+ }++ .chat-citation-float__body {+ color: var(--td-text-color-secondary);+ }+ }+}++@media (prefers-reduced-motion: reduce) {+ .chat-citation-float--kb {+ transition: none;+ }}