💄(frontend) fix loading screen not visually centered
the loading word was sticked to top left without any padding
This commit is contained in:
@@ -2,6 +2,8 @@ import { useState, useEffect } from 'react'
|
|||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
import { BoxScreen } from './BoxScreen'
|
import { BoxScreen } from './BoxScreen'
|
||||||
import { Screen } from './Screen'
|
import { Screen } from './Screen'
|
||||||
|
import { VerticallyOffCenter } from '@/primitives'
|
||||||
|
import { Center, Container } from '@/styled-system/jsx'
|
||||||
|
|
||||||
export const LoadingScreen = ({
|
export const LoadingScreen = ({
|
||||||
asBox = false,
|
asBox = false,
|
||||||
@@ -23,7 +25,11 @@ export const LoadingScreen = ({
|
|||||||
const Container = asBox ? BoxScreen : Screen
|
const Container = asBox ? BoxScreen : Screen
|
||||||
return (
|
return (
|
||||||
<Container>
|
<Container>
|
||||||
<p>{t('loading')}</p>
|
<VerticallyOffCenter>
|
||||||
|
<Center>
|
||||||
|
<p>{t('loading')}</p>
|
||||||
|
</Center>
|
||||||
|
</VerticallyOffCenter>
|
||||||
</Container>
|
</Container>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user