From db1e4b000bcabf4f1b5dea56f9345a881d737e8a Mon Sep 17 00:00:00 2001 From: Kacper Michalik Date: Tue, 1 Aug 2023 12:19:27 +0200 Subject: [PATCH 1/2] fix styles --- packages/mobile/src/components/Chat/Chat.component.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/mobile/src/components/Chat/Chat.component.tsx b/packages/mobile/src/components/Chat/Chat.component.tsx index 11c6e402da..4a2100511e 100644 --- a/packages/mobile/src/components/Chat/Chat.component.tsx +++ b/packages/mobile/src/components/Chat/Chat.component.tsx @@ -170,6 +170,7 @@ export const Chat: FC = ({ = ({ onChangeText={onInputTextChange} placeholder={`Message #${channel?.name}`} multiline={true} - wrapperStyle={{ flexGrow: 1 }} + wrapperStyle={{ width: didKeyboardShow || areFilesUploaded ? '75%' : '85%' }} disabled={!ready} /> + From a9cda45e13491865f1e2e1cb09e117b98375a69e Mon Sep 17 00:00:00 2001 From: Kacper Michalik Date: Tue, 1 Aug 2023 12:26:36 +0200 Subject: [PATCH 2/2] fix snapshots --- packages/mobile/src/components/Chat/Chat.test.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/mobile/src/components/Chat/Chat.test.tsx b/packages/mobile/src/components/Chat/Chat.test.tsx index 890d49b3db..940efedfff 100644 --- a/packages/mobile/src/components/Chat/Chat.test.tsx +++ b/packages/mobile/src/components/Chat/Chat.test.tsx @@ -3318,13 +3318,14 @@ describe('Chat component', () => { style={ { "flexDirection": "row", + "width": "100%", } } > @@ -3399,6 +3400,7 @@ describe('Chat component', () => { "gap": 5, "paddingLeft": 10, "paddingRight": 10, + "width": "15%", } } > @@ -3772,13 +3774,14 @@ describe('Chat component', () => { style={ { "flexDirection": "row", + "width": "100%", } } > @@ -3853,6 +3856,7 @@ describe('Chat component', () => { "gap": 5, "paddingLeft": 10, "paddingRight": 10, + "width": "25%", } } >