Skip to content

Commit

Permalink
fet: minor chat UI tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
noelzappy committed Mar 6, 2023
1 parent 901fef0 commit 5375274
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/screens/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ const Screen = ({ route }: AllScreenProps) => {
};

const renderImageOption = () => {
if (text) return null;
if (text || showVoiceRecorder) return null;

return (
<TouchableOpacity
Expand Down Expand Up @@ -455,7 +455,7 @@ const Screen = ({ route }: AllScreenProps) => {
},
]}
>
<View style={[Gutters.smallHMargin]}>
<View style={[Gutters.smallHMargin, Gutters.smallTPadding]}>
<LinearProgress
color={Colors.primary}
style={{
Expand Down Expand Up @@ -558,6 +558,9 @@ const Screen = ({ route }: AllScreenProps) => {
Layout.alignItemsCenter,
{
paddingHorizontal: 5,
backgroundColor: showVoiceRecorder
? Colors.grayLighter
: undefined,
},
]}
>
Expand All @@ -571,11 +574,14 @@ const Screen = ({ route }: AllScreenProps) => {
height: inputHeight > 40 ? inputHeight + 10 : 48,
maxHeight: 110,
borderRadius: inputHeight > 40 ? 20 : 30,
backgroundColor: showVoiceRecorder
? Colors.grayLighter
: undefined,
},
]}
>
<TextInput
placeholder="Type a message"
placeholder={showVoiceRecorder ? '' : 'Type a message...'}
value={text}
onChangeText={setText}
style={[
Expand Down

0 comments on commit 5375274

Please sign in to comment.