diff --git a/client/src/App.jsx b/client/src/App.jsx index 9caa45e9..3130c6e4 100644 --- a/client/src/App.jsx +++ b/client/src/App.jsx @@ -48,7 +48,10 @@ function Layout({ children }) { setSidebarOpen(!sidebarOpen); // Toggle the state }; return ( - + {showNav && } {showNav && sidebarOpen && } diff --git a/client/src/Components/chatComponent.jsx b/client/src/Components/chatComponent.jsx index e86ddbbd..e5c758a9 100644 --- a/client/src/Components/chatComponent.jsx +++ b/client/src/Components/chatComponent.jsx @@ -279,38 +279,19 @@ const ChatComponent = () => { - {messages.length === 0 && ( - - App Logo - - - )} + + + {welcomeMessage.length === 0 && ( Welcome to Mental Health Companion - + )} + - {isFetchingMessage ? : + {isFetchingMessage ? : + (messages.length === 0 && ( { {messageIcon(welcomeMessage)} )} - + )) } {messages.map((msg, index) => ( @@ -334,7 +315,14 @@ const ChatComponent = () => { //backgroundColor: msg.sender === 'user' ? 'primary.light' : 'grey.100', // Adjust colors here borderRadius: 2, // Optional: Adds rounded corners mb: 0.5, // Margin bottom for spacing between messages - p: 1 // Padding inside each list item + p: 1, // Padding inside each list item + border: 'none', // Added to remove any border or underline + '&:before': { // Targeting pseudo-elements which might create lines + display: 'none' + }, + '&:after': { // Same as above + display: 'none' + } }}>