From 894e883dede154e3517e4f67be8f0e69e69a0751 Mon Sep 17 00:00:00 2001 From: Lorem Date: Fri, 9 Feb 2024 01:07:27 -0500 Subject: [PATCH] adjusted horizontal scroll bar style, changed input box to textarea to support multiple lines, refactored menu buttons, fixed deleteConversation method, and added deleteAllConversations method --- src/renderer/App.css | 1 + src/renderer/components/Chat.tsx | 7 +- src/renderer/components/ConversationsMenu.tsx | 102 +++++++++++------- src/renderer/utils/conversationManager.ts | 7 +- 4 files changed, 74 insertions(+), 43 deletions(-) diff --git a/src/renderer/App.css b/src/renderer/App.css index c9df6e5..4ffae44 100644 --- a/src/renderer/App.css +++ b/src/renderer/App.css @@ -86,6 +86,7 @@ /* Chrome, Edge, and Safari */ *::-webkit-scrollbar { width: 3px; + height: 4px; position: absolute; } diff --git a/src/renderer/components/Chat.tsx b/src/renderer/components/Chat.tsx index f9ba056..b820b5a 100644 --- a/src/renderer/components/Chat.tsx +++ b/src/renderer/components/Chat.tsx @@ -187,6 +187,7 @@ export default function Chat() { const keyDown = (e: any) => { if (e.key === 'Enter' && !pending) { + e.preventDefault(); sendMessage(); setTimeout(() => { scrollToBottom(); @@ -196,9 +197,9 @@ export default function Chat() { const renderInput = () => { return ( -
- +