mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 01:10: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') {
|
if (isLoading && conversationId !== 'new') {
|
||||||
content = (
|
content = (
|
||||||
<div className="flex h-screen items-center justify-center">
|
<div className="relative flex-1 overflow-hidden overflow-y-auto">
|
||||||
<Spinner className="text-text-primary" />
|
<div className="relative flex h-full items-center justify-center">
|
||||||
|
<Spinner className="text-text-primary" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
} else if (!isLandingPage) {
|
} else if (!isLandingPage) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue