Skip to content

Commit cd55c3e

Browse files
committed
refac
1 parent 8dba798 commit cd55c3e

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/lib/components/workspace/Knowledge/KnowledgeBase/AddTextContentModal.svelte

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
const dispatch = createEventDispatcher();
88
99
import Modal from '$lib/components/common/Modal.svelte';
10-
import RichTextInput from '$lib/components/common/RichTextInput.svelte';
1110
import XMark from '$lib/components/icons/XMark.svelte';
1211
import MicSolid from '$lib/components/icons/MicSolid.svelte';
1312
import Tooltip from '$lib/components/common/Tooltip.svelte';
@@ -57,7 +56,7 @@
5756
<div class="shrink-0 w-full flex justify-between items-center">
5857
<div class="w-full">
5958
<input
60-
class="w-full text-3xl font-medium bg-transparent outline-hidden"
59+
class="w-full text-3xl bg-transparent outline-hidden"
6160
type="text"
6261
bind:value={name}
6362
placeholder={$i18n.t('Title')}
@@ -67,17 +66,17 @@
6766
</div>
6867

6968
<div class=" flex-1 w-full h-full">
70-
<RichTextInput
69+
<textarea
70+
class="w-full h-full min-h-[200px] bg-transparent outline-none resize-none text-base leading-relaxed placeholder:text-gray-300 dark:placeholder:text-gray-600"
7171
bind:value={content}
7272
placeholder={$i18n.t('Write something...')}
73-
preserveBreaks={true}
7473
/>
7574
</div>
7675
</div>
7776
</div>
7877

7978
<div
80-
class="flex flex-row items-center justify-end text-sm font-medium shrink-0 mt-1 p-4 gap-1.5"
79+
class="flex flex-row items-center justify-end text-sm shrink-0 mt-1 p-4 gap-1.5"
8180
>
8281
<div class="">
8382
{#if voiceInput}

0 commit comments

Comments
 (0)