mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
🎨 style: Prevent Layout Shift when Loading Chat
This commit is contained in:
parent
677423d82c
commit
05bbbd5b60
1 changed files with 4 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue