mirror of
https://github.com/open-webui/open-webui
synced 2025-05-31 11:00:49 +00:00
refac
This commit is contained in:
parent
5d2e725f81
commit
20211a489f
@ -46,6 +46,14 @@ math {
|
|||||||
@apply rounded-lg;
|
@apply rounded-lg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input::placeholder {
|
||||||
|
direction: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
textarea::placeholder {
|
||||||
|
direction: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.input-prose {
|
.input-prose {
|
||||||
@apply prose dark:prose-invert prose-headings:font-semibold prose-hr:my-4 prose-hr:border-gray-100 prose-hr:dark:border-gray-800 prose-p:my-0 prose-img:my-1 prose-headings:my-1 prose-pre:my-0 prose-table:my-0 prose-blockquote:my-0 prose-ul:-my-0 prose-ol:-my-0 prose-li:-my-0 whitespace-pre-line;
|
@apply prose dark:prose-invert prose-headings:font-semibold prose-hr:my-4 prose-hr:border-gray-100 prose-hr:dark:border-gray-800 prose-p:my-0 prose-img:my-1 prose-headings:my-1 prose-pre:my-0 prose-table:my-0 prose-blockquote:my-0 prose-ul:-my-0 prose-ol:-my-0 prose-li:-my-0 whitespace-pre-line;
|
||||||
}
|
}
|
||||||
|
@ -1033,7 +1033,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class=" flex justify-between mt-1.5 mb-2.5 mx-0.5 max-w-full">
|
<div class=" flex justify-between mt-1.5 mb-2.5 mx-0.5 max-w-full" dir="ltr">
|
||||||
<div class="ml-1 self-end flex items-center flex-1 max-w-[80%] gap-0.5">
|
<div class="ml-1 self-end flex items-center flex-1 max-w-[80%] gap-0.5">
|
||||||
<InputMenu
|
<InputMenu
|
||||||
bind:selectedToolIds
|
bind:selectedToolIds
|
||||||
|
@ -211,7 +211,13 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
const toggleChangeChatDirection = async () => {
|
const toggleChangeChatDirection = async () => {
|
||||||
chatDirection = chatDirection === 'LTR' ? 'RTL' : 'LTR';
|
if (chatDirection === 'auto') {
|
||||||
|
chatDirection = 'LTR';
|
||||||
|
} else if (chatDirection === 'LTR') {
|
||||||
|
chatDirection = 'RTL';
|
||||||
|
} else if (chatDirection === 'RTL') {
|
||||||
|
chatDirection = 'auto';
|
||||||
|
}
|
||||||
saveSettings({ chatDirection });
|
saveSettings({ chatDirection });
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -412,8 +418,10 @@
|
|||||||
>
|
>
|
||||||
{#if chatDirection === 'LTR'}
|
{#if chatDirection === 'LTR'}
|
||||||
<span class="ml-2 self-center">{$i18n.t('LTR')}</span>
|
<span class="ml-2 self-center">{$i18n.t('LTR')}</span>
|
||||||
{:else}
|
{:else if chatDirection === 'RTL'}
|
||||||
<span class="ml-2 self-center">{$i18n.t('RTL')}</span>
|
<span class="ml-2 self-center">{$i18n.t('RTL')}</span>
|
||||||
|
{:else}
|
||||||
|
<span class="ml-2 self-center">{$i18n.t('Auto')}</span>
|
||||||
{/if}
|
{/if}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user