Skip to content

Commit 7a42807

Browse files
authored
Merge pull request #483 from miurla/feature/add-help-message
Add help message to empty chat screen
2 parents f83db16 + 3ebcb6e commit 7a42807

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

components/chat-panel.tsx

+5-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,11 @@ export function ChatPanel({
8282
)}
8383
>
8484
{messages.length === 0 && (
85-
<div className="mb-8">
85+
<div className="mb-10 flex flex-col items-center gap-4">
8686
<IconLogo className="size-12 text-muted-foreground" />
87+
<p className="text-center text-3xl font-semibold">
88+
How can I help you today?
89+
</p>
8790
</div>
8891
)}
8992
<form
@@ -105,7 +108,7 @@ export function ChatPanel({
105108
placeholder="Ask a question..."
106109
spellCheck={false}
107110
value={input}
108-
className="resize-none w-full min-h-12 bg-transparent border-0 px-4 py-3 text-sm placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50"
111+
className="resize-none w-full min-h-12 bg-transparent border-0 p-4 text-sm placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50"
109112
onChange={e => {
110113
handleInputChange(e)
111114
setShowEmptyScreen(e.target.value.length === 0)

0 commit comments

Comments
 (0)