Timothy Jaeryang Baek 3 月之前
父節點
當前提交
dd87111c80
共有 2 個文件被更改,包括 3 次插入0 次删除
  1. 2 0
      src/lib/components/channel/MessageInput.svelte
  2. 1 0
      src/lib/components/notes/NoteEditor/Chat.svelte

+ 2 - 0
src/lib/components/channel/MessageInput.svelte

@@ -60,6 +60,7 @@
 	export let scrollToBottom: Function = () => {};
 
 	export let acceptFiles = true;
+	export let showFormattingButtons = true;
 
 	let showInputVariablesModal = false;
 	let inputVariables: Record<string, any> = {};
@@ -697,6 +698,7 @@
 									bind:this={chatInputElement}
 									json={true}
 									messageInput={true}
+									{showFormattingButtons}
 									shiftEnter={!($settings?.ctrlEnterToSend ?? false) &&
 										(!$mobile ||
 											!(

+ 1 - 0
src/lib/components/notes/NoteEditor/Chat.svelte

@@ -344,6 +344,7 @@ Based on the user's instruction, update and enhance the existing notes by incorp
 						bind:chatInputElement
 						acceptFiles={false}
 						inputLoading={loading}
+						showFormattingButtons={false}
 						onSubmit={submitHandler}
 						{onStop}
 					>