Skip to content

Commit

Permalink
Merge pull request #1683 from TryQuiet/bug/1678
Browse files Browse the repository at this point in the history
bug/1678
  • Loading branch information
Kacper-RF authored Aug 1, 2023
2 parents 5abbd97 + a9cda45 commit f0d23e2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion packages/mobile/src/components/Chat/Chat.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,22 +170,25 @@ export const Chat: FC<ChatProps & FileActionsProps> = ({
<View
style={{
flexDirection: 'row',
width: '100%',
}}
>
<Input
ref={messageInputRef}
onChangeText={onInputTextChange}
placeholder={`Message #${channel?.name}`}
multiline={true}
wrapperStyle={{ flexGrow: 1 }}
wrapperStyle={{ width: didKeyboardShow || areFilesUploaded ? '75%' : '85%' }}
disabled={!ready}
/>

<View
style={{
paddingLeft: 10,
paddingRight: 10,
gap: 5,
flexDirection: 'row',
width: didKeyboardShow || areFilesUploaded ? '25%' : '15%',
}}
>
<AttachmentButton onPress={openAttachments} />
Expand Down
8 changes: 6 additions & 2 deletions packages/mobile/src/components/Chat/Chat.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3318,13 +3318,14 @@ describe('Chat component', () => {
style={
{
"flexDirection": "row",
"width": "100%",
}
}
>
<View
style={
{
"flexGrow": 1,
"width": "85%",
}
}
>
Expand Down Expand Up @@ -3399,6 +3400,7 @@ describe('Chat component', () => {
"gap": 5,
"paddingLeft": 10,
"paddingRight": 10,
"width": "15%",
}
}
>
Expand Down Expand Up @@ -3772,13 +3774,14 @@ describe('Chat component', () => {
style={
{
"flexDirection": "row",
"width": "100%",
}
}
>
<View
style={
{
"flexGrow": 1,
"width": "75%",
}
}
>
Expand Down Expand Up @@ -3853,6 +3856,7 @@ describe('Chat component', () => {
"gap": 5,
"paddingLeft": 10,
"paddingRight": 10,
"width": "25%",
}
}
>
Expand Down

0 comments on commit f0d23e2

Please sign in to comment.