Skip to content

Commit

Permalink
[PAY-1107][PAY-1112] Center mobile chat text input, enlarge icon (#3136)
Browse files Browse the repository at this point in the history
  • Loading branch information
dharit-tan authored Mar 31, 2023
1 parent fcec3f5 commit 086af81
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions packages/mobile/src/screens/chat-screen/ChatScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,16 @@ const useStyles = makeStyles(({ spacing, palette, typography }) => ({
alignItems: 'center',
backgroundColor: palette.neutralLight10,
paddingLeft: spacing(4),
paddingRight: spacing(3),
borderRadius: spacing(1)
},
composeTextInput: {
fontSize: typography.fontSize.medium
fontSize: typography.fontSize.medium,
lineHeight: spacing(6),
paddingTop: 0
},
icon: {
width: spacing(5),
height: spacing(5),
width: spacing(7),
height: spacing(7),
fill: palette.primary
},
userBadgeTitle: {
Expand Down Expand Up @@ -416,23 +417,25 @@ export const ChatScreen = () => {
placeholder={messages.startNewMessage}
Icon={() => (
<IconSend
fill={palette.primary}
width={styles.icon.width}
height={styles.icon.height}
opacity={iconOpacity}
fill={styles.icon.fill}
onPress={() => handleSubmit(inputMessage)}
/>
)}
styles={{
root: styles.composeTextContainer,
input: styles.composeTextInput
input: [
styles.composeTextInput,
Platform.OS === 'ios' ? { paddingBottom: spacing(1) } : null
]
}}
onChangeText={(text) => {
setInputMessage(text)
text ? setIconOpacity(ICON_FOCUS) : setIconOpacity(ICON_BLUR)
}}
inputAccessoryViewID='none'
onBlur={() => setIconOpacity(ICON_BLUR)}
multiline
value={inputMessage}
/>
Expand Down

0 comments on commit 086af81

Please sign in to comment.