mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-29 06:32:52 +00:00
fix(a11y): the version link and See what's new in Settings > About are at least 24 pixels tall when Accessibility Mode is on (#32946)
This commit is contained in:
parent
049d75e176
commit
b085326746
1 changed files with 12 additions and 3 deletions
|
|
@ -5,7 +5,7 @@
|
|||
import { getVersionUpdates } from '$lib/apis';
|
||||
import { getOllamaVersion } from '$lib/apis/ollama';
|
||||
import { WEBUI_BUILD_CHANNEL, WEBUI_VERSION } from '$lib/constants';
|
||||
import { WEBUI_NAME, config, showChangelog } from '$lib/stores';
|
||||
import { WEBUI_NAME, config, settings, showChangelog } from '$lib/stores';
|
||||
import { compareVersion } from '$lib/utils';
|
||||
import { onMount, getContext } from 'svelte';
|
||||
|
||||
|
|
@ -66,7 +66,11 @@
|
|||
>
|
||||
<UserSettingRow description={$i18n.t('settings.personal.about.seeWhatSNew.description')}>
|
||||
<div slot="label" class="flex flex-col text-xs text-gray-600 dark:text-gray-400">
|
||||
<div class="flex flex-wrap gap-1">
|
||||
<div
|
||||
class="flex flex-wrap {($settings?.highContrastMode ?? false)
|
||||
? 'items-center'
|
||||
: ''} gap-1"
|
||||
>
|
||||
<BuildVersion />
|
||||
|
||||
{#if WEBUI_BUILD_CHANNEL === 'main' && $config?.features?.enable_version_update_check}
|
||||
|
|
@ -74,6 +78,9 @@
|
|||
<span>{$i18n.t('Could not check for updates')}</span>
|
||||
{:else}
|
||||
<a
|
||||
class={($settings?.highContrastMode ?? false)
|
||||
? 'inline-flex min-h-6 items-center'
|
||||
: ''}
|
||||
href="https://github.com/open-webui/open-webui/releases/tag/v{version.latest}"
|
||||
target="_blank"
|
||||
>
|
||||
|
|
@ -88,7 +95,9 @@
|
|||
</div>
|
||||
|
||||
<button
|
||||
class="self-start {actionButtonClass}"
|
||||
class="self-start {($settings?.highContrastMode ?? false)
|
||||
? 'inline-flex min-h-6 items-center'
|
||||
: ''} {actionButtonClass}"
|
||||
on:click={() => {
|
||||
showChangelog.set(true);
|
||||
}}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue