fix: height of loading screen

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2023-04-24 11:34:27 +02:00
parent 43a85f54ca
commit 07dd196bff
2 changed files with 6 additions and 8 deletions

View file

@ -5,13 +5,11 @@
*/
.loader {
height: 100%;
height: 100vh;
width: 100%;
&.middle, .middle {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
}

View file

@ -21,7 +21,7 @@ export interface LoadingScreenProps {
*/
export const LoadingScreen: React.FC<LoadingScreenProps> = ({ errorMessage }) => {
return (
<div className={`${styles.loader} ${styles.middle} text-light overflow-hidden`}>
<div className={`${styles.loader} text-light`}>
<div className='mb-3 text-light'>
<span className={`d-block`}>
<LoadingAnimation error={!!errorMessage} />