enh: formatting toolbar for chat

This commit is contained in:
Timothy Jaeryang Baek
2025-08-06 12:21:18 +04:00
parent 0acd78049d
commit bfa42c6277
5 changed files with 256 additions and 211 deletions
@@ -60,7 +60,7 @@
export let scrollToBottom: Function = () => {};
export let acceptFiles = true;
export let showFormattingButtons = true;
export let showFormattingToolbar = true;
let showInputVariablesModal = false;
let inputVariables: Record<string, any> = {};
@@ -700,7 +700,7 @@
bind:this={chatInputElement}
json={true}
messageInput={true}
{showFormattingButtons}
{showFormattingToolbar}
shiftEnter={!($settings?.ctrlEnterToSend ?? false) &&
(!$mobile ||
!(