mirror of
https://github.com/open-webui/open-webui
synced 2025-01-22 10:45:47 +00:00
refac: styling
This commit is contained in:
parent
45f4bc18f8
commit
94d0f84c0c
@ -150,9 +150,13 @@
|
|||||||
submitHandler();
|
submitHandler();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div class="flex text-center text-sm font-medium rounded-full bg-transparent/10 p-1 mb-2">
|
<div
|
||||||
|
class="flex -mt-2 mb-1.5 gap-1 scrollbar-none overflow-x-auto w-fit text-center text-sm font-medium rounded-full bg-transparent dark:text-gray-200"
|
||||||
|
>
|
||||||
<button
|
<button
|
||||||
class="w-full rounded-full p-1.5 {tab === '' ? 'bg-gray-50 dark:bg-gray-850' : ''}"
|
class="min-w-fit rounded-full p-1.5 {tab === ''
|
||||||
|
? ''
|
||||||
|
: 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition"
|
||||||
type="button"
|
type="button"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
tab = '';
|
tab = '';
|
||||||
@ -160,15 +164,16 @@
|
|||||||
>
|
>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="w-full rounded-full p-1 {tab === 'import'
|
class="min-w-fit rounded-full p-1.5 {tab === 'import'
|
||||||
? 'bg-gray-50 dark:bg-gray-850'
|
? ''
|
||||||
: ''}"
|
: 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition"
|
||||||
type="button"
|
type="button"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
tab = 'import';
|
tab = 'import';
|
||||||
}}>{$i18n.t('CSV Import')}</button
|
}}>{$i18n.t('CSV Import')}</button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="px-1">
|
<div class="px-1">
|
||||||
{#if tab === ''}
|
{#if tab === ''}
|
||||||
<div class="flex flex-col w-full mb-3">
|
<div class="flex flex-col w-full mb-3">
|
||||||
@ -176,7 +181,7 @@
|
|||||||
|
|
||||||
<div class="flex-1">
|
<div class="flex-1">
|
||||||
<select
|
<select
|
||||||
class="w-full capitalize rounded-lg py-2 px-4 text-sm dark:text-gray-300 dark:bg-gray-850 disabled:text-gray-500 dark:disabled:text-gray-500 outline-none"
|
class="w-full capitalize rounded-lg text-sm bg-transparent dark:disabled:text-gray-500 outline-none"
|
||||||
bind:value={_user.role}
|
bind:value={_user.role}
|
||||||
placeholder={$i18n.t('Enter Your Role')}
|
placeholder={$i18n.t('Enter Your Role')}
|
||||||
required
|
required
|
||||||
|
Loading…
Reference in New Issue
Block a user