feat(web/textui) bottom center position(#507)

This commit is contained in:
xSamiVS
2024-03-09 11:04:18 +01:00
committed by GitHub
parent 0c470f249a
commit d8578281ee
4 changed files with 9 additions and 6 deletions

View File

@@ -14,9 +14,12 @@ const useStyles = createStyles((theme, params: { position?: TextUiPosition }) =>
width: '100%',
position: 'absolute',
display: 'flex',
alignItems: params.position === 'top-center' ? 'baseline' : 'center',
justifyContent:
params.position === 'right-center' ? 'flex-end' : params.position === 'left-center' ? 'flex-start' : 'center',
alignItems:
params.position === 'top-center' ? 'baseline' :
params.position === 'bottom-center' ? 'flex-end' : 'center',
justifyContent:
params.position === 'right-center' ? 'flex-end' :
params.position === 'left-center' ? 'flex-start' : 'center',
},
container: {
fontSize: 16,