🔥 Mobile god

This commit is contained in:
Asim Shrestha
2023-04-08 10:13:25 -07:00
parent b1fc5bc1bb
commit a8ac614f22
4 changed files with 29 additions and 17 deletions

View File

@@ -32,7 +32,7 @@ const ChatWindow = ({ messages, children, className }: ChatWindowProps) => {
>
<MacWindowHeader />
<div
className="mb-3 mr-3 h-[10em] overflow-y-auto 2xl:h-[20em] "
className="mb-3 mr-3 h-[10em] overflow-y-auto sm-h:h-[15em] md-h:h-[20em] lg-h:h-[30em] "
ref={scrollRef}
>
{messages.map((message, index) => (
@@ -40,7 +40,11 @@ const ChatWindow = ({ messages, children, className }: ChatWindowProps) => {
))}
{children}
<ChatMessage message={{ type: "thinking", value: "" }} />
{messages.length != 0 ? (
<ChatMessage message={{ type: "thinking", value: "" }} />
) : (
""
)}
</div>
</div>
);