We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85b4d77 commit fc97d0cCopy full SHA for fc97d0c
1 file changed
frontend/src/core/components/shared/LoadingFallback.tsx
@@ -1,19 +1,25 @@
1
/**
2
- * Loading fallback component for i18next suspense
+ * Loading fallback component for i18next suspense and lazy components.
3
+ * Uses 100% height to fill its parent container without causing layout shifts
4
+ * by forcing a 100vh height in contained areas.
5
*/
6
export function LoadingFallback() {
7
return (
8
<div
9
style={{
10
display: "flex",
11
+ flexDirection: "column",
12
justifyContent: "center",
13
alignItems: "center",
- height: "100vh",
14
+ height: "100%",
15
+ width: "100%",
16
+ minHeight: "200px",
17
fontSize: "18px",
- color: "#666",
18
+ color: "var(--text-muted, #666)",
19
+ background: "transparent",
20
}}
21
>
- Loading...
22
+ <div className="animate-pulse">Loading...</div>
23
</div>
24
);
25
}
0 commit comments