mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-08 03:08:02 +00:00
feat(ui): add citation source overflow badge (#23918)
This commit is contained in:
parent
258e9f917b
commit
b73538ece7
1 changed files with 8 additions and 0 deletions
|
|
@ -183,6 +183,14 @@
|
|||
}}
|
||||
/>
|
||||
{/each}
|
||||
{#if citations.length > 3}
|
||||
<div
|
||||
class="size-4 rounded-full shrink-0 border border-white dark:border-gray-850 bg-gray-100 dark:bg-gray-800 flex items-center justify-center text-[8px] font-semibold text-gray-500 dark:text-gray-400"
|
||||
aria-hidden="true"
|
||||
>
|
||||
+{citations.length - Math.min(urlCitations.length, 3)}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
<div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue