mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 21:05:19 +00:00
refac
This commit is contained in:
parent
76dbbf57d2
commit
c2afd0d5aa
1 changed files with 27 additions and 10 deletions
|
|
@ -326,18 +326,35 @@
|
||||||
<h1 class=" mb-2 text-sm font-medium">{$i18n.t('UI')}</h1>
|
<h1 class=" mb-2 text-sm font-medium">{$i18n.t('UI')}</h1>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div class="py-0.5">
|
<div class="py-0.5 flex w-full justify-between">
|
||||||
<div class="flex w-full justify-between">
|
<label id="ui-scale-label" class=" self-center text-xs" for="ui-scale-slider">
|
||||||
<label id="ui-scale-label" class=" self-center text-xs" for="ui-scale-slider">
|
{$i18n.t('UI Scale')}
|
||||||
{$i18n.t('UI Scale')}
|
</label>
|
||||||
</label>
|
|
||||||
|
|
||||||
<div class="flex items-center gap-1 text-xs px-1" aria-live="polite">
|
<div class="flex items-center gap-2 p-1">
|
||||||
<span>{textScale}x</span>
|
<button
|
||||||
</div>
|
class="text-xs"
|
||||||
|
aria-live="polite"
|
||||||
|
type="button"
|
||||||
|
on:click={() => {
|
||||||
|
if (textScale === null) {
|
||||||
|
textScale = 1;
|
||||||
|
} else {
|
||||||
|
textScale = null;
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{#if textScale === null}
|
||||||
|
<span>{$i18n.t('Default')}</span>
|
||||||
|
{:else}
|
||||||
|
<span>{textScale}x</span>
|
||||||
|
{/if}
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="mt-2 flex items-center gap-2 pl-1 pr-1">
|
{#if textScale !== null}
|
||||||
|
<div class=" flex items-center gap-2 px-1 pb-1">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="rounded-lg p-1 transition outline-gray-200 hover:bg-gray-100 dark:outline-gray-700 dark:hover:bg-gray-800"
|
class="rounded-lg p-1 transition outline-gray-200 hover:bg-gray-100 dark:outline-gray-700 dark:hover:bg-gray-800"
|
||||||
|
|
@ -384,7 +401,7 @@
|
||||||
<Plus className="h-3.5 w-3.5" />
|
<Plus className="h-3.5 w-3.5" />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue