@@ -45,31 +45,44 @@ const ManageDatabasesScreen: FC<PropsWithNavigation> = ({ navigation }) => {
4545 < Appbar . Action icon = "plus" onPress = { handleClickAdd } />
4646 </ Appbar . Header >
4747 < StyledView theme = { theme } >
48- < Box style = { { flex : 1 , width : '100%' } } >
48+ < Box
49+ style = { {
50+ flex : 1 ,
51+ width : '100%' ,
52+ display : 'flex' ,
53+ flexDirection : 'column' ,
54+ alignItems : 'center' ,
55+ } }
56+ >
4957 { ! hasConfiguredDatabases ? (
50- < Box
51- style = { {
52- display : 'flex' ,
53- justifyContent : 'center' ,
54- height : '100%' ,
55- } }
56- >
57- < Box mb = { 16 } >
58- < Text style = { { textAlign : 'center' } } variant = "titleLarge" >
59- { t ( 'manageDatabases.noDatabasesConfigured' ) }
60- </ Text >
61- </ Box >
62- < Box mb = { 16 } >
63- < Text style = { { textAlign : 'center' } } variant = "titleMedium" >
64- { t ( 'manageDatabases.noDatabasesConfiguredHint' ) }
65- </ Text >
58+ < Box >
59+ < Box
60+ style = { {
61+ display : 'flex' ,
62+ justifyContent : 'center' ,
63+ height : '100%' ,
64+ width : '90%' ,
65+ } }
66+ >
67+ < Box mb = { 16 } >
68+ < Text style = { { textAlign : 'center' } } variant = "titleLarge" >
69+ { t ( 'manageDatabases.noDatabasesConfigured' ) }
70+ </ Text >
71+ </ Box >
72+ < Box mb = { 16 } >
73+ < Text style = { { textAlign : 'center' } } variant = "titleMedium" >
74+ { t ( 'manageDatabases.noDatabasesConfiguredHint' ) }
75+ </ Text >
76+ </ Box >
77+ < Button icon = "plus" onPress = { handleClickAdd } >
78+ { t ( 'manageDatabases.addDatabase' ) }
79+ </ Button >
6680 </ Box >
67- < Button icon = "plus" onPress = { handleClickAdd } >
68- { t ( 'manageDatabases.addDatabase' ) }
69- </ Button >
7081 </ Box >
7182 ) : (
72- < ScrollView style = { { marginTop : 16 , marginBottom : 16 } } >
83+ < ScrollView
84+ style = { { marginTop : 16 , marginBottom : 16 , width : '100%' } }
85+ >
7386 < Box style = { { gap : spacing , marginHorizontal : 16 } } >
7487 { databases . map ( ( config , index ) => (
7588 < StyledListItem
0 commit comments