mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 09:46:30 -05:00
fix: height of loading screen
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
43a85f54ca
commit
07dd196bff
2 changed files with 6 additions and 8 deletions
|
@ -5,13 +5,11 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.loader {
|
.loader {
|
||||||
height: 100%;
|
height: 100vh;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
&.middle, .middle {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@ export interface LoadingScreenProps {
|
||||||
*/
|
*/
|
||||||
export const LoadingScreen: React.FC<LoadingScreenProps> = ({ errorMessage }) => {
|
export const LoadingScreen: React.FC<LoadingScreenProps> = ({ errorMessage }) => {
|
||||||
return (
|
return (
|
||||||
<div className={`${styles.loader} ${styles.middle} text-light overflow-hidden`}>
|
<div className={`${styles.loader} text-light`}>
|
||||||
<div className='mb-3 text-light'>
|
<div className='mb-3 text-light'>
|
||||||
<span className={`d-block`}>
|
<span className={`d-block`}>
|
||||||
<LoadingAnimation error={!!errorMessage} />
|
<LoadingAnimation error={!!errorMessage} />
|
||||||
|
|
Loading…
Reference in a new issue