@@ -63,15 +63,14 @@ import { AutoCompleteInput } from '../AutoCompleteInput/AutoCompleteInput';
6363import { CreatePoll } from '../Poll/CreatePollContent' ;
6464
6565const styles = StyleSheet . create ( {
66+ attachmentPreviewListContainer : { paddingTop : 12 } ,
6667 attachmentSeparator : {
6768 borderBottomWidth : 1 ,
6869 marginBottom : 10 ,
6970 } ,
7071 autoCompleteInputContainer : {
7172 alignItems : 'center' ,
7273 flexDirection : 'row' ,
73- paddingLeft : 16 ,
74- paddingRight : 16 ,
7574 } ,
7675 composerContainer : {
7776 alignItems : 'center' ,
@@ -92,7 +91,7 @@ const styles = StyleSheet.create({
9291 optionsContainer : {
9392 flexDirection : 'row' ,
9493 } ,
95- replyContainer : { paddingBottom : 12 , paddingHorizontal : 8 } ,
94+ replyContainer : { paddingBottom : 0 , paddingHorizontal : 8 , paddingTop : 8 } ,
9695 sendButtonContainer : { } ,
9796 suggestionsListContainer : {
9897 position : 'absolute' ,
@@ -231,6 +230,7 @@ const MessageInputWithContext = (props: MessageInputPropsWithContext) => {
231230 theme : {
232231 colors : { border, grey_whisper, white, white_smoke } ,
233232 messageInput : {
233+ attachmentPreviewListContainer,
234234 attachmentSelectionBar,
235235 autoCompleteInputContainer,
236236 composerContainer,
@@ -494,7 +494,6 @@ const MessageInputWithContext = (props: MessageInputPropsWithContext) => {
494494 styles . inputBoxContainer ,
495495 {
496496 borderColor : grey_whisper ,
497- paddingVertical : command ? 8 : 12 ,
498497 } ,
499498 inputBoxContainer ,
500499 isFocused ? focusedInputBoxContainer : null ,
@@ -505,7 +504,16 @@ const MessageInputWithContext = (props: MessageInputPropsWithContext) => {
505504 < Reply />
506505 </ View >
507506 ) }
508- < AttachmentUploadPreviewList />
507+ { attachments . length > 0 ? (
508+ < View
509+ style = { [
510+ styles . attachmentPreviewListContainer ,
511+ attachmentPreviewListContainer ,
512+ ] }
513+ >
514+ < AttachmentUploadPreviewList />
515+ </ View >
516+ ) : null }
509517 { command ? (
510518 < CommandInput disabled = { ! isOnline } />
511519 ) : (
0 commit comments