@@ -231,29 +231,31 @@ export default function ChatScreen() {
231
231
flex : ! hasCanvas ,
232
232
} ) }
233
233
>
234
+ { /* placeholder to shift the message to the bottom */ }
235
+ { ! viewingChat && (
236
+ < div className = "grow flex flex-col items-center justify-center " >
237
+ < b className = "text-4xl" > Nice to see you.</ b >
238
+ < small > how can I help you today?</ small >
239
+ </ div >
240
+ ) }
241
+
234
242
{ /* chat messages */ }
235
- < div id = "messages-list" className = "grow" ref = { msgListRef } >
236
- < div className = "mt-auto flex flex-col items-center" >
237
- { /* placeholder to shift the message to the bottom */ }
238
- { viewingChat ? (
239
- ''
240
- ) : (
241
- < div className = "mb-4" > Send a message to start</ div >
242
- ) }
243
+ { viewingChat && (
244
+ < div id = "messages-list" className = "grow" ref = { msgListRef } >
245
+ { [ ...messages , ...pendingMsgDisplay ] . map ( ( msg ) => (
246
+ < ChatMessage
247
+ key = { msg . msg . id }
248
+ msg = { msg . msg }
249
+ siblingLeafNodeIds = { msg . siblingLeafNodeIds }
250
+ siblingCurrIdx = { msg . siblingCurrIdx }
251
+ onRegenerateMessage = { handleRegenerateMessage }
252
+ onEditMessage = { handleEditMessage }
253
+ onChangeSibling = { setCurrNodeId }
254
+ isPending = { msg . isPending }
255
+ />
256
+ ) ) }
243
257
</ div >
244
- { [ ...messages , ...pendingMsgDisplay ] . map ( ( msg ) => (
245
- < ChatMessage
246
- key = { msg . msg . id }
247
- msg = { msg . msg }
248
- siblingLeafNodeIds = { msg . siblingLeafNodeIds }
249
- siblingCurrIdx = { msg . siblingCurrIdx }
250
- onRegenerateMessage = { handleRegenerateMessage }
251
- onEditMessage = { handleEditMessage }
252
- onChangeSibling = { setCurrNodeId }
253
- isPending = { msg . isPending }
254
- />
255
- ) ) }
256
- </ div >
258
+ ) }
257
259
258
260
{ /* chat input */ }
259
261
< ChatInput
0 commit comments