mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-29 06:32:52 +00:00
fix(a11y): the More and Eject buttons on model picker rows are 24 pixels square when Accessibility Mode is on (#32920)
This commit is contained in:
parent
b085326746
commit
637da15918
1 changed files with 11 additions and 3 deletions
|
|
@ -287,14 +287,20 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ml-auto flex shrink-0 items-center gap-1.5 pl-2">
|
||||
<div
|
||||
class="ml-auto flex shrink-0 items-center {($settings?.highContrastMode ?? false)
|
||||
? 'gap-0.5'
|
||||
: 'gap-1.5'} pl-2"
|
||||
>
|
||||
{#if !selectionOnly && $user?.role === 'admin' && item.model.loaded}
|
||||
<Tooltip
|
||||
content={`${$i18n.t('Eject')}`}
|
||||
className="flex-shrink-0 group-hover/item:opacity-100 group-focus-within/item:opacity-100 opacity-0 "
|
||||
>
|
||||
<button
|
||||
class="focus-ring flex"
|
||||
class="focus-ring flex {($settings?.highContrastMode ?? false)
|
||||
? 'size-6 items-center justify-center rounded-lg'
|
||||
: ''}"
|
||||
aria-label={$i18n.t('Eject model')}
|
||||
on:click={(e) => {
|
||||
e.preventDefault();
|
||||
|
|
@ -320,7 +326,9 @@
|
|||
>
|
||||
<button
|
||||
aria-label={`${$i18n.t('More Options')}`}
|
||||
class="focus-ring flex"
|
||||
class="focus-ring flex {($settings?.highContrastMode ?? false)
|
||||
? 'size-6 items-center justify-center rounded-lg'
|
||||
: ''}"
|
||||
on:click={(e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue