1- import { isWeb } from '@baca/constants'
21import { Box , Text , Button , Row , themeColors } from '@baca/design-system'
32import * as ImagePicker from 'expo-image-picker'
43import { t } from 'i18next'
@@ -22,8 +21,8 @@ export const ProfileEditImage: React.FC = () => {
2221 } , [ ] )
2322
2423 return (
25- < Box borderColor = "border.secondary" borderTopWidth = { 1 } py = { 6 } >
26- < Box style = { styles . marginBottom } >
24+ < Row style = { styles . container } >
25+ < Box style = { styles . textContainer } >
2726 < Text . SmBold color = "text.primary" > { t ( 'profile_screen.your_photo' ) } </ Text . SmBold >
2827 < Text . SmRegular color = "text.secondary" >
2928 { t ( 'profile_screen.your_photo_description' ) }
@@ -34,39 +33,47 @@ export const ProfileEditImage: React.FC = () => {
3433 < Image source = { { uri : image } } style = { styles . image } />
3534 ) : (
3635 < Box style = { styles . placeholder } >
37- < Text color = "Gray modern.600" > { t ( 'profile_screen.photo_innerText' ) } </ Text >
36+ < Text fontSize = { 11 } color = "Gray modern.600" >
37+ { t ( 'profile_screen.photo_innerText' ) }
38+ </ Text >
3839 </ Box >
3940 ) }
4041 </ Box >
41- < Row maxW = { 800 } justifyContent = "flex-end" >
42- < Button onPress = { pickImage } > { t ( 'common.upload' ) } </ Button >
43- </ Row >
44- </ Box >
42+ < Button onPress = { pickImage } > { t ( 'common.upload' ) } </ Button >
43+ </ Row >
4544 )
4645}
4746
4847const styles = StyleSheet . create ( {
48+ container : {
49+ alignItems : 'flex-start' ,
50+ flexDirection : 'row' ,
51+ flexWrap : 'wrap' ,
52+ justifyContent : 'space-between' ,
53+ maxWidth : 800 ,
54+ } ,
4955 image : {
5056 height : '100%' ,
5157 width : '100%' ,
5258 } ,
5359 imageContainer : {
54- alignSelf : 'center' ,
55- borderRadius : 50 ,
56- height : 100 ,
60+ borderRadius : 32 ,
61+ height : 64 ,
5762 marginBottom : 10 ,
63+ marginRight : 82 ,
5864 overflow : 'hidden' ,
59- right : isWeb ? 150 : 0 ,
60- width : 100 ,
61- } ,
62- marginBottom : {
63- marginBottom : 10 ,
65+ width : 64 ,
6466 } ,
6567 placeholder : {
6668 alignItems : 'center' ,
6769 backgroundColor : themeColors . primitives [ 'Gray neutral' ] [ '50' ] ,
6870 height : '100%' ,
6971 justifyContent : 'center' ,
70- width : '100%' ,
72+ } ,
73+ textContainer : {
74+ flex : 1 ,
75+ marginBottom : 30 ,
76+ maxWidth : 260 ,
77+ minWidth : 260 ,
7178 } ,
7279} )
0 commit comments