mirror of
https://github.com/open-webui/open-webui.git
synced 2026-12-02 17:57:57 -05:00
fix(a11y): screen readers hear how many models match a search in the model picker (#32897)
This commit is contained in:
1 file changed
+10
@@ -1032,6 +1032,16 @@
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="sr-only" aria-live="polite" aria-atomic="true">
|
||||
{#if sanitizedSearchValue}
|
||||
{filteredItems.length === 0
|
||||
? $i18n.t('No results found')
|
||||
: filteredItems.length === 1
|
||||
? $i18n.t('1 item')
|
||||
: $i18n.t('{{count}} items', { count: filteredItems.length })}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="group relative flex min-h-0 flex-1 flex-col">
|
||||
{#if filteredItems.length === 0}
|
||||
{#if items.length === 0 && $user?.role === 'admin'}
|
||||
|
||||
Reference in new issue
Block a user