From b4b29550b70a27f5c03e5199b3632ad503d4f1ec Mon Sep 17 00:00:00 2001 From: Sean Hatfield Date: Wed, 22 May 2024 14:19:25 -0700 Subject: [PATCH] Fix chat width on larger screens (#1493) * fix chat width on larger screens * update loading layout padding --------- Co-authored-by: timothycarambat --- frontend/src/components/ChatBubble/index.jsx | 4 +--- frontend/src/components/DefaultChat/index.jsx | 18 +++++++++--------- .../ChatHistory/Chartable/index.jsx | 4 ++-- .../ChatHistory/HistoricalMessage/index.jsx | 4 +--- .../ChatHistory/PromptReply/index.jsx | 6 +++--- .../ChatContainer/ChatHistory/index.jsx | 2 +- .../WorkspaceChat/LoadingChat/index.jsx | 12 ++++++------ 7 files changed, 23 insertions(+), 27 deletions(-) diff --git a/frontend/src/components/ChatBubble/index.jsx b/frontend/src/components/ChatBubble/index.jsx index 72002ab2..8d311883 100644 --- a/frontend/src/components/ChatBubble/index.jsx +++ b/frontend/src/components/ChatBubble/index.jsx @@ -9,9 +9,7 @@ export default function ChatBubble({ message, type, popMsg }) { return (
-
+
@@ -67,7 +67,7 @@ export default function DefaultChatContainer() { className={`flex justify-center items-end w-full ${AI_BACKGROUND_COLOR}`} >
@@ -90,7 +90,7 @@ export default function DefaultChatContainer() { className={`flex justify-center items-end w-full ${AI_BACKGROUND_COLOR}`} >
@@ -124,7 +124,7 @@ export default function DefaultChatContainer() { className={`flex justify-center items-end w-full ${USER_BACKGROUND_COLOR}`} >
@@ -185,7 +185,7 @@ export default function DefaultChatContainer() { className={`flex justify-center items-end w-full ${USER_BACKGROUND_COLOR}`} >
@@ -248,7 +248,7 @@ export default function DefaultChatContainer() { className={`flex justify-center items-end w-full ${USER_BACKGROUND_COLOR}`} >
diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/Chartable/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/Chartable/index.jsx index 6a6e6b13..2ce0fa5d 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/Chartable/index.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/Chartable/index.jsx @@ -368,7 +368,7 @@ export function Chartable({ props, workspace }) { if (!!props.chatId) { return (
-
+
@@ -389,7 +389,7 @@ export function Chartable({ props, workspace }) { return (
-
+
{renderChart()}
diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/index.jsx index 19817d7d..ae8f10b4 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/index.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/index.jsx @@ -29,9 +29,7 @@ const HistoricalMessage = ({ role === "user" ? USER_BACKGROUND_COLOR : AI_BACKGROUND_COLOR }`} > -
+
{error ? ( diff --git a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/PromptReply/index.jsx b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/PromptReply/index.jsx index 858c773e..07f8280a 100644 --- a/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/PromptReply/index.jsx +++ b/frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/PromptReply/index.jsx @@ -21,7 +21,7 @@ const PromptReply = ({
-
+
@@ -36,7 +36,7 @@ const PromptReply = ({
-
+
-
+
-
+