style(chat): solve the issue where the SetupBanner is cut off (#1078)
Fixes #1077 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fix the SetupBanner being cut off in the empty chat state. The placeholder message now uses flex-1 instead of h-full so the banner renders fully. <!-- End of auto-generated description by cubic. --> Co-authored-by: 顾颢 <guhao@dayee.com>
This commit is contained in:
@@ -53,7 +53,7 @@ export const MessagesList = forwardRef<HTMLDivElement, MessagesListProps>(
|
|||||||
))
|
))
|
||||||
) : (
|
) : (
|
||||||
<div className="flex flex-col items-center justify-center h-full max-w-2xl mx-auto">
|
<div className="flex flex-col items-center justify-center h-full max-w-2xl mx-auto">
|
||||||
<div className="flex items-center justify-center h-full text-gray-500">
|
<div className="flex flex-1 items-center justify-center text-gray-500">
|
||||||
No messages yet
|
No messages yet
|
||||||
</div>
|
</div>
|
||||||
{!isAnyProviderSetup() && <SetupBanner />}
|
{!isAnyProviderSetup() && <SetupBanner />}
|
||||||
|
|||||||
Reference in New Issue
Block a user