From 418c72991a7d47c6d6007dbacb8c40bf89db619f Mon Sep 17 00:00:00 2001 From: tranminhquang Date: Wed, 4 Jun 2025 14:51:34 +0700 Subject: [PATCH] Refactor layout and scrolling for chat and welcome screens --- frontend/src/App.tsx | 8 +------- frontend/src/components/ChatMessagesView.tsx | 2 +- frontend/src/components/WelcomeScreen.tsx | 2 +- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 6e68e50..52d3313 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -154,12 +154,7 @@ export default function App() { return (
-
-
+
{thread.messages.length === 0 ? ( )} -
); diff --git a/frontend/src/components/ChatMessagesView.tsx b/frontend/src/components/ChatMessagesView.tsx index 1792e6f..8b90a90 100644 --- a/frontend/src/components/ChatMessagesView.tsx +++ b/frontend/src/components/ChatMessagesView.tsx @@ -253,7 +253,7 @@ export function ChatMessagesView({ return (
- +
{messages.map((message, index) => { const isLast = index === messages.length - 1; diff --git a/frontend/src/components/WelcomeScreen.tsx b/frontend/src/components/WelcomeScreen.tsx index 8c0a2fa..b1015aa 100644 --- a/frontend/src/components/WelcomeScreen.tsx +++ b/frontend/src/components/WelcomeScreen.tsx @@ -15,7 +15,7 @@ export const WelcomeScreen: React.FC = ({ onCancel, isLoading, }) => ( -
+

Welcome.