🎨 style: Prevent Layout Shift when Loading Chat

This commit is contained in:
Danny Avila 2025-04-01 11:51:42 -04:00
parent 677423d82c
commit 05bbbd5b60
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956

View file

@ -52,8 +52,10 @@ function ChatView({ index = 0 }: { index?: number }) {
if (isLoading && conversationId !== 'new') {
content = (
<div className="flex h-screen items-center justify-center">
<Spinner className="text-text-primary" />
<div className="relative flex-1 overflow-hidden overflow-y-auto">
<div className="relative flex h-full items-center justify-center">
<Spinner className="text-text-primary" />
</div>
</div>
);
} else if (!isLandingPage) {