Feature tree loading indicator is too big and requires scroll to see (#6508)

Fixes #6477
This commit is contained in:
Pierre Jacquier
2025-04-25 15:58:33 -04:00
committed by GitHub
parent a1f31f4348
commit 9547e95e9d
4 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ export const Auth = ({ children }: React.PropsWithChildren) => {
const isLoggingIn = authState.matches('checkIfLoggedIn')
return isLoggingIn ? (
<Loading>
<Loading className="h-screen">
<span data-testid="initial-load">Loading Design Studio...</span>
</Loading>
) : (

View File

@ -418,7 +418,7 @@ export const EngineStream = (props: {
{![EngineStreamState.Playing, EngineStreamState.Paused].some(
(s) => s === engineStreamState.value
) && (
<Loading dataTestId="loading-engine" className="fixed inset-0">
<Loading dataTestId="loading-engine" className="fixed inset-0 h-screen">
Connecting to engine
</Loading>
)}

View File

@ -111,7 +111,7 @@ const Loading = ({ children, className, dataTestId }: LoadingProps) => {
return (
<div
className={`body-bg flex flex-col items-center justify-center h-screen ${colorClass} ${className}`}
className={`body-bg flex flex-col items-center justify-center ${colorClass} ${className}`}
data-testid={dataTestId ? dataTestId : 'loading'}
>
{isUnrecoverableError ? (

View File

@ -321,7 +321,7 @@ const Home = () => {
className="flex-1 overflow-y-auto pr-2 pb-24"
>
{state?.matches(SystemIOMachineStates.readingFolders) ? (
<Loading>Loading your Projects...</Loading>
<Loading className="h-screen">Loading your Projects...</Loading>
) : (
<>
{searchResults.length > 0 ? (