🎨 style: Prevent Layout Shift when Loading Chat
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user