mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-26 01:10:37 -04:00
refac
This commit is contained in:
@@ -53,11 +53,10 @@
|
||||
on:input={(e) => update(e.currentTarget.value)}
|
||||
/>
|
||||
{/if}
|
||||
{#if locale && showControls}
|
||||
{#if locale && showControls && (translated || fallback)}
|
||||
<div
|
||||
class="mt-1 flex flex-wrap items-center gap-3 text-[0.6875rem] text-gray-400 dark:text-gray-600"
|
||||
>
|
||||
<span>{translated ? $i18n.t('Translated') : $i18n.t('Using default')}</span>
|
||||
{#if translated}<button
|
||||
type="button"
|
||||
class="text-gray-500 hover:text-gray-700 dark:hover:text-gray-300"
|
||||
|
||||
@@ -62,7 +62,6 @@
|
||||
title={localeLabel}
|
||||
class="flex flex-wrap items-center gap-x-3 gap-y-1 text-[0.6875rem] text-gray-400 dark:text-gray-600"
|
||||
>
|
||||
{hasCustomLocalePrompts ? $i18n.t('Translated') : $i18n.t('Using default')}
|
||||
{#if hasCustomLocalePrompts}
|
||||
<button
|
||||
type="button"
|
||||
|
||||
@@ -758,12 +758,7 @@
|
||||
</div>
|
||||
|
||||
{#if editingLocale}
|
||||
<div class="mt-1 flex items-center justify-between gap-3 text-[0.6875rem]">
|
||||
<span class="truncate text-gray-400 dark:text-gray-600">
|
||||
{localizedField('name')
|
||||
? $i18n.t('Translated')
|
||||
: $i18n.t('Using default')}
|
||||
</span>
|
||||
<div class="mt-1 flex items-center justify-end gap-3 text-[0.6875rem]">
|
||||
<div
|
||||
class="flex shrink-0 items-center gap-2 text-gray-500 dark:text-gray-400"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user