Skip to content

Commit

Permalink
Merge pull request #19200 from Expensify/cmartins-fixIOUPreviewMargin
Browse files Browse the repository at this point in the history
Fix IOUPreview top margin
  • Loading branch information
techievivek authored May 22, 2023
2 parents d2a2a5c + 7c178a6 commit c917c44
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/components/ReportActionItem/MoneyRequestAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ const propTypes = {
email: PropTypes.string,
}),

/** Styles to be assigned to Container */
// eslint-disable-next-line react/forbid-prop-types
style: PropTypes.arrayOf(PropTypes.object),

...withLocalizePropTypes,
};

Expand All @@ -82,6 +86,7 @@ const defaultProps = {
session: {
email: null,
},
style: [],
};

const MoneyRequestAction = (props) => {
Expand Down Expand Up @@ -145,7 +150,7 @@ const MoneyRequestAction = (props) => {
checkIfContextMenuActive={props.checkIfContextMenuActive}
shouldShowPendingConversionMessage={shouldShowPendingConversionMessage}
onPreviewPressed={onIOUPreviewPressed}
containerStyles={[styles.cursorPointer, props.isHovered ? styles.iouPreviewBoxHover : undefined]}
containerStyles={[styles.cursorPointer, props.isHovered ? styles.iouPreviewBoxHover : undefined, ...props.style]}
isHovered={props.isHovered}
/>
</>
Expand Down
1 change: 1 addition & 0 deletions src/pages/home/report/ReportActionItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ class ReportActionItem extends Component {
isHovered={hovered}
contextMenuAnchor={this.popoverAnchor}
checkIfContextMenuActive={this.checkIfContextMenuActive}
style={this.props.displayAsGroup ? [] : [styles.mt2]}
/>
);
} else if (this.props.action.actionName === CONST.REPORT.ACTIONS.TYPE.REPORTPREVIEW) {
Expand Down
1 change: 0 additions & 1 deletion src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -2456,7 +2456,6 @@ const styles = {
backgroundColor: themeColors.cardBG,
borderRadius: variables.componentBorderRadiusCard,
padding: 20,
marginTop: 16,
maxWidth: variables.sideBarWidth,
width: '100%',
},
Expand Down

0 comments on commit c917c44

Please sign in to comment.