mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-30 00:45:12 -05:00
refac
This commit is contained in:
1 parent
ed3cf83553
commit
63eed95c87
1 file changed
+13
@@ -73,6 +73,7 @@
|
||||
};
|
||||
|
||||
const searchHandler = () => {
|
||||
chatList = null;
|
||||
if (searchDebounceTimeout) {
|
||||
clearTimeout(searchDebounceTimeout);
|
||||
}
|
||||
@@ -270,6 +271,18 @@
|
||||
</Dropdown>
|
||||
</div>
|
||||
|
||||
<div class="sr-only" aria-live="polite" aria-atomic="true">
|
||||
{#if query && chatList !== null}
|
||||
{#if chatList.length === 0}
|
||||
{$i18n.t('No results found')}
|
||||
{:else if chatList.length === 1}
|
||||
{$i18n.t('1 item')}
|
||||
{:else}
|
||||
{$i18n.t('{{count}} items', { count: chatList.length })}
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="mt-3 flex-1 min-h-0 overflow-y-auto scrollbar-hover pr-1.5">
|
||||
{#if chatList === null}
|
||||
<div class="flex min-h-20 items-center justify-center">
|
||||
|
||||
Reference in new issue
Block a user