From dd87111c80c8a70670607abe08c86a4e4325862d Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 9 Jul 2025 03:15:20 +0400 Subject: [PATCH] refac --- src/lib/components/channel/MessageInput.svelte | 2 ++ src/lib/components/notes/NoteEditor/Chat.svelte | 1 + 2 files changed, 3 insertions(+) diff --git a/src/lib/components/channel/MessageInput.svelte b/src/lib/components/channel/MessageInput.svelte index ced656c706..1e2d5c386b 100644 --- a/src/lib/components/channel/MessageInput.svelte +++ b/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 = {}; @@ -697,6 +698,7 @@ bind:this={chatInputElement} json={true} messageInput={true} + {showFormattingButtons} shiftEnter={!($settings?.ctrlEnterToSend ?? false) && (!$mobile || !( diff --git a/src/lib/components/notes/NoteEditor/Chat.svelte b/src/lib/components/notes/NoteEditor/Chat.svelte index 259d6de1e0..7785a3990d 100644 --- a/src/lib/components/notes/NoteEditor/Chat.svelte +++ b/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} >