Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/components/OfflineWithFeedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ const propTypes = {
/** Additional styles to add after local styles. Applied to the parent container */
style: stylePropTypes,

/** Additional styles to add after local styles. Applied to the children wrapper container */
contentContainerStyle: stylePropTypes,

/** Additional style object for the error row */
errorRowStyles: stylePropTypes,

Expand All @@ -51,6 +54,7 @@ const defaultProps = {
errors: null,
onClose: () => {},
style: [],
contentContainerStyle: [],
errorRowStyles: [],
};

Expand Down Expand Up @@ -89,7 +93,7 @@ const OfflineWithFeedback = (props) => {
return (
<View style={props.style}>
{!hideChildren && (
<View style={needsOpacity ? styles.offlineFeedback.pending : {}}>
<View style={[needsOpacity ? styles.offlineFeedback.pending : {}, props.contentContainerStyle]}>
{children}
</View>
)}
Expand Down
2 changes: 2 additions & 0 deletions src/pages/home/report/ReportFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ class ReportFooter extends React.Component {
<SwipeableView onSwipeDown={Keyboard.dismiss}>
<OfflineWithFeedback
pendingAction={this.props.addWorkspaceRoomPendingAction}
style={this.props.isComposerFullSize ? styles.chatItemFullComposeRow : {}}
contentContainerStyle={this.props.isComposerFullSize ? styles.flex1 : {}}
>
<ReportActionCompose
onSubmit={this.props.onSubmitComment}
Expand Down
3 changes: 2 additions & 1 deletion src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -1410,9 +1410,10 @@ const styles = {
}, 0),

textInputFullCompose: {
alignSelf: 'flex-end',
alignSelf: 'stretch',
flex: 1,
maxHeight: '100%',
textAlignVertical: 'top',
},

editInputComposeSpacing: {
Expand Down