.chat-resource-chip-surface() { background: var(--td-bg-color-secondarycontainer); border: 1px solid var(--td-component-stroke); color: var(--td-text-color-primary); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--td-bg-color-container) 72%, transparent); } .chat-resource-chip-hover() { background: var(--td-bg-color-secondarycontainer-hover); border-color: var(--td-component-border); } .chat-mentioned-items(@justify: flex-start) { display: flex; flex-wrap: wrap; gap: 6px; justify-content: @justify; max-width: 100%; margin-bottom: 2px; } .chat-mentioned-tag() { .chat-resource-chip-surface(); display: inline-flex; align-items: center; gap: 5px; min-height: 26px; max-width: 200px; padding: 3px 8px; border-radius: var(--td-radius-medium, 6px); box-sizing: border-box; font-size: 12px; font-weight: 500; line-height: 18px; cursor: default; &.kb-tag .tag_icon { color: var(--td-brand-color); } &.faq-tag .tag_icon { color: var(--weknora-faq-color, #0052d9); } &.file-tag .tag_icon { color: var(--td-text-color-secondary); } .tag_icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; } .tag_name { overflow: hidden; color: currentColor; text-overflow: ellipsis; white-space: nowrap; } }