mirror of
https://github.com/open-webui/open-webui
synced 2024-11-24 21:13:59 +00:00
Adjust controls to ensure proper display of localized strings
This commit is contained in:
parent
6bfd48e412
commit
b0fd90ada9
@ -94,7 +94,7 @@
|
|||||||
class="tabs flex flex-row overflow-x-auto space-x-1 md:space-x-0 md:space-y-1 md:flex-col flex-1 md:flex-none md:w-40 dark:text-gray-200 text-xs text-left mb-3 md:mb-0"
|
class="tabs flex flex-row overflow-x-auto space-x-1 md:space-x-0 md:space-y-1 md:flex-col flex-1 md:flex-none md:w-40 dark:text-gray-200 text-xs text-left mb-3 md:mb-0"
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-right transition {selectedTab ===
|
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-left transition {selectedTab ===
|
||||||
'general'
|
'general'
|
||||||
? 'bg-gray-200 dark:bg-gray-800'
|
? 'bg-gray-200 dark:bg-gray-800'
|
||||||
: ' hover:bg-gray-100 dark:hover:bg-gray-850'}"
|
: ' hover:bg-gray-100 dark:hover:bg-gray-850'}"
|
||||||
@ -120,7 +120,7 @@
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-right transition {selectedTab ===
|
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-left transition {selectedTab ===
|
||||||
'interface'
|
'interface'
|
||||||
? 'bg-gray-200 dark:bg-gray-800'
|
? 'bg-gray-200 dark:bg-gray-800'
|
||||||
: ' hover:bg-gray-100 dark:hover:bg-gray-850'}"
|
: ' hover:bg-gray-100 dark:hover:bg-gray-850'}"
|
||||||
@ -146,7 +146,7 @@
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-right transition {selectedTab ===
|
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-left transition {selectedTab ===
|
||||||
'personalization'
|
'personalization'
|
||||||
? 'bg-gray-200 dark:bg-gray-800'
|
? 'bg-gray-200 dark:bg-gray-800'
|
||||||
: ' hover:bg-gray-100 dark:hover:bg-gray-850'}"
|
: ' hover:bg-gray-100 dark:hover:bg-gray-850'}"
|
||||||
@ -161,7 +161,7 @@
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-right transition {selectedTab ===
|
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-left transition {selectedTab ===
|
||||||
'audio'
|
'audio'
|
||||||
? 'bg-gray-200 dark:bg-gray-800'
|
? 'bg-gray-200 dark:bg-gray-800'
|
||||||
: ' hover:bg-gray-100 dark:hover:bg-gray-850'}"
|
: ' hover:bg-gray-100 dark:hover:bg-gray-850'}"
|
||||||
@ -188,7 +188,7 @@
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-right transition {selectedTab ===
|
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-left transition {selectedTab ===
|
||||||
'chats'
|
'chats'
|
||||||
? 'bg-gray-200 dark:bg-gray-800'
|
? 'bg-gray-200 dark:bg-gray-800'
|
||||||
: ' hover:bg-gray-100 dark:hover:bg-gray-850'}"
|
: ' hover:bg-gray-100 dark:hover:bg-gray-850'}"
|
||||||
@ -214,7 +214,7 @@
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-right transition {selectedTab ===
|
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-left transition {selectedTab ===
|
||||||
'account'
|
'account'
|
||||||
? 'bg-gray-200 dark:bg-gray-800'
|
? 'bg-gray-200 dark:bg-gray-800'
|
||||||
: ' hover:bg-gray-100 dark:hover:bg-gray-850'}"
|
: ' hover:bg-gray-100 dark:hover:bg-gray-850'}"
|
||||||
@ -241,7 +241,7 @@
|
|||||||
|
|
||||||
{#if $user.role === 'admin'}
|
{#if $user.role === 'admin'}
|
||||||
<button
|
<button
|
||||||
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-right transition {selectedTab ===
|
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-left transition {selectedTab ===
|
||||||
'admin'
|
'admin'
|
||||||
? 'bg-gray-200 dark:bg-gray-800'
|
? 'bg-gray-200 dark:bg-gray-800'
|
||||||
: ' hover:bg-gray-100 dark:hover:bg-gray-850'}"
|
: ' hover:bg-gray-100 dark:hover:bg-gray-850'}"
|
||||||
@ -269,7 +269,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-right transition {selectedTab ===
|
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1 md:flex-none flex text-left transition {selectedTab ===
|
||||||
'about'
|
'about'
|
||||||
? 'bg-gray-200 dark:bg-gray-800'
|
? 'bg-gray-200 dark:bg-gray-800'
|
||||||
: ' hover:bg-gray-100 dark:hover:bg-gray-850'}"
|
: ' hover:bg-gray-100 dark:hover:bg-gray-850'}"
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<input
|
<input
|
||||||
bind:value={tagName}
|
bind:value={tagName}
|
||||||
class=" px-2 cursor-pointer self-center text-xs h-fit bg-transparent outline-none line-clamp-1 w-[5.5rem]"
|
class=" px-2 cursor-pointer self-center text-xs h-fit bg-transparent outline-none line-clamp-1 w-[6.5rem]"
|
||||||
placeholder={$i18n.t('Add a tag')}
|
placeholder={$i18n.t('Add a tag')}
|
||||||
list="tagOptions"
|
list="tagOptions"
|
||||||
on:keydown={(event) => {
|
on:keydown={(event) => {
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
<div slot="content">
|
<div slot="content">
|
||||||
<DropdownMenu.Content
|
<DropdownMenu.Content
|
||||||
class="w-full max-w-[160px] rounded-xl px-1 py-1.5 border border-gray-300/30 dark:border-gray-700/50 z-50 bg-white dark:bg-gray-850 dark:text-white shadow"
|
class="w-full max-w-[180px] rounded-xl px-1 py-1.5 border border-gray-300/30 dark:border-gray-700/50 z-50 bg-white dark:bg-gray-850 dark:text-white shadow"
|
||||||
sideOffset={-2}
|
sideOffset={-2}
|
||||||
side="bottom"
|
side="bottom"
|
||||||
align="start"
|
align="start"
|
||||||
|
Loading…
Reference in New Issue
Block a user