refac
This commit is contained in:
1 parent
b2769f831e
commit
280179828a
2 files changed
+19
-12
No files matched your search
@@ -411,7 +411,7 @@
|
|||||||
<Modal bind:show={showSourceModal} size="sm">
|
<Modal bind:show={showSourceModal} size="sm">
|
||||||
<div>
|
<div>
|
||||||
<div class="flex justify-between dark:text-gray-100 px-5 pt-4 pb-2">
|
<div class="flex justify-between dark:text-gray-100 px-5 pt-4 pb-2">
|
||||||
<h1 class="text-lg font-normal self-center ">
|
<h1 class="text-lg font-normal self-center">
|
||||||
{editingItem ? $i18n.t('Edit Knowledge Connection') : $i18n.t('Add Knowledge Connection')}
|
{editingItem ? $i18n.t('Edit Knowledge Connection') : $i18n.t('Add Knowledge Connection')}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
@@ -790,7 +790,14 @@
|
|||||||
|
|
||||||
<div class="flex w-full flex-col justify-between text-xs">
|
<div class="flex w-full flex-col justify-between text-xs">
|
||||||
<div class="mb-2 flex items-center justify-between">
|
<div class="mb-2 flex items-center justify-between">
|
||||||
<div class="text-gray-600 dark:text-gray-400">{$i18n.t('Sources')}</div>
|
<div class="flex items-center gap-2 leading-none text-gray-600 dark:text-gray-400">
|
||||||
|
<div>{$i18n.t('External Knowledge Sources')}</div>
|
||||||
|
<span
|
||||||
|
class="inline-flex items-center text-[0.625rem] font-normal uppercase leading-none text-gray-400 dark:text-gray-600"
|
||||||
|
>
|
||||||
|
{$i18n.t('Experimental')}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
<Tooltip content={$i18n.t('Add Connection')}>
|
<Tooltip content={$i18n.t('Add Connection')}>
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -802,7 +802,7 @@
|
|||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
id="message-input-container"
|
id="message-input-container"
|
||||||
class="flex-1 flex flex-col relative w-full shadow-lg rounded-3xl border border-gray-50 dark:border-gray-850/30 hover:border-gray-100 focus-within:border-gray-100 hover:dark:border-gray-800 focus-within:dark:border-gray-800 transition px-1 bg-white/90 dark:bg-gray-400/5 dark:text-gray-100"
|
class="flex-1 flex flex-col relative w-full shadow-lg rounded-3xl border border-gray-50 dark:border-gray-850/30 hover:border-gray-100 focus-within:border-gray-100 hover:dark:border-gray-800 focus-within:dark:border-gray-800 transition px-0.5 bg-white/90 dark:bg-gray-400/5 dark:text-gray-100"
|
||||||
dir={$settings?.chatDirection ?? 'auto'}
|
dir={$settings?.chatDirection ?? 'auto'}
|
||||||
>
|
>
|
||||||
{#if replyToMessage !== null}
|
{#if replyToMessage !== null}
|
||||||
@@ -892,9 +892,9 @@
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<div class="px-2.5">
|
<div class="px-2">
|
||||||
<div
|
<div
|
||||||
class="scrollbar-hidden rtl:text-right ltr:text-left bg-transparent dark:text-gray-100 outline-hidden w-full pt-2.5 pb-[5px] px-1 resize-none h-fit max-h-96 overflow-auto"
|
class="scrollbar-hidden rtl:text-right ltr:text-left bg-transparent dark:text-gray-100 outline-hidden w-full pt-2 pb-0.5 px-1 resize-none h-fit max-h-96 overflow-auto"
|
||||||
>
|
>
|
||||||
{#key $settings?.richTextInput && $settings?.showFormattingToolbar}
|
{#key $settings?.richTextInput && $settings?.showFormattingToolbar}
|
||||||
<RichTextInput
|
<RichTextInput
|
||||||
@@ -980,8 +980,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class=" flex justify-between mb-2.5 mx-0.5">
|
<div class=" flex justify-between mt-0.5 mb-2 mx-0.5 max-w-full">
|
||||||
<div class="ml-1 self-end flex space-x-1 flex-1">
|
<div class="ml-1 self-end flex items-center flex-1 min-w-0">
|
||||||
<slot name="menu">
|
<slot name="menu">
|
||||||
{#if acceptFiles}
|
{#if acceptFiles}
|
||||||
<InputMenu
|
<InputMenu
|
||||||
@@ -992,7 +992,7 @@
|
|||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
id="input-menu-button"
|
id="input-menu-button"
|
||||||
class="bg-transparent hover:bg-white/80 text-gray-800 dark:text-white dark:hover:bg-gray-800 transition rounded-full p-1.5 outline-hidden focus:outline-hidden"
|
class="bg-transparent hover:bg-gray-100 text-gray-700 dark:text-white dark:hover:bg-gray-800 rounded-full size-[1.875rem] flex justify-center items-center outline-hidden focus:outline-hidden shrink-0"
|
||||||
type="button"
|
type="button"
|
||||||
aria-label="More"
|
aria-label="More"
|
||||||
>
|
>
|
||||||
@@ -1012,12 +1012,12 @@
|
|||||||
</slot>
|
</slot>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="self-end flex space-x-1 mr-1">
|
<div class="self-end flex space-x-1 mr-1 shrink-0 gap-[0.5px]">
|
||||||
{#if content === ''}
|
{#if content === ''}
|
||||||
<Tooltip content={$i18n.t('Record voice')}>
|
<Tooltip content={$i18n.t('Record voice')}>
|
||||||
<button
|
<button
|
||||||
id="voice-input-button"
|
id="voice-input-button"
|
||||||
class=" text-gray-600 dark:text-gray-300 hover:text-gray-700 dark:hover:text-gray-200 transition rounded-full p-1.5 mr-0.5 self-center"
|
class=" text-gray-600 dark:text-gray-300 hover:text-gray-700 dark:hover:text-gray-200 transition rounded-full p-[5px] mr-0.5 self-center"
|
||||||
type="button"
|
type="button"
|
||||||
on:click={async () => {
|
on:click={async () => {
|
||||||
try {
|
try {
|
||||||
@@ -1067,7 +1067,7 @@
|
|||||||
<div class=" flex items-center">
|
<div class=" flex items-center">
|
||||||
<Tooltip content={$i18n.t('Stop')}>
|
<Tooltip content={$i18n.t('Stop')}>
|
||||||
<button
|
<button
|
||||||
class="bg-white hover:bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-800 transition rounded-full p-1.5"
|
class="bg-white hover:bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-800 transition rounded-full p-[5px]"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
onStop();
|
onStop();
|
||||||
}}
|
}}
|
||||||
@@ -1094,7 +1094,7 @@
|
|||||||
id="send-message-button"
|
id="send-message-button"
|
||||||
class="{content !== '' || files.length !== 0
|
class="{content !== '' || files.length !== 0
|
||||||
? 'bg-black text-white hover:bg-gray-900 dark:bg-white dark:text-black dark:hover:bg-gray-100 '
|
? 'bg-black text-white hover:bg-gray-900 dark:bg-white dark:text-black dark:hover:bg-gray-100 '
|
||||||
: 'text-white bg-gray-200 dark:text-gray-900 dark:bg-gray-700 disabled'} transition rounded-full p-1.5 self-center"
|
: 'text-white bg-gray-200 dark:text-gray-900 dark:bg-gray-700 disabled'} transition rounded-full p-[5px] self-center"
|
||||||
type="submit"
|
type="submit"
|
||||||
disabled={content === '' && files.length === 0}
|
disabled={content === '' && files.length === 0}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in new issue
Block a user