Skip to content

Commit

Permalink
Merge pull request Expensify#42329 from nkdengineer/fix/42210
Browse files Browse the repository at this point in the history
fix: Split scan - Excessive header space in split menu
  • Loading branch information
chiragsalian authored May 22, 2024
2 parents 531067c + e4ae531 commit 7eac0bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/MoneyRequestHeaderStatusBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@ type MoneyRequestHeaderStatusBarProps = {

/** Whether we should use the danger theme color */
danger?: boolean;

/** Whether we style flex grow */
shouldStyleFlexGrow?: boolean;
};

function MoneyRequestHeaderStatusBar({title, description, shouldShowBorderBottom, danger = false}: MoneyRequestHeaderStatusBarProps) {
function MoneyRequestHeaderStatusBar({title, description, shouldShowBorderBottom, danger = false, shouldStyleFlexGrow = true}: MoneyRequestHeaderStatusBarProps) {
const styles = useThemeStyles();
const borderBottomStyle = shouldShowBorderBottom ? styles.borderBottom : {};
return (
Expand All @@ -28,7 +31,7 @@ function MoneyRequestHeaderStatusBar({title, description, shouldShowBorderBottom
styles.dFlex,
styles.flexRow,
styles.alignItemsCenter,
styles.flexGrow1,
shouldStyleFlexGrow && styles.flexGrow1,
styles.overflowHidden,
styles.ph5,
styles.pb3,
Expand Down
1 change: 1 addition & 0 deletions src/pages/iou/SplitBillDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ function SplitBillDetailsPage({personalDetails, report, route, reportActions, tr
title={translate('iou.receiptStatusTitle')}
description={translate('iou.receiptStatusText')}
shouldShowBorderBottom
shouldStyleFlexGrow={false}
/>
)}
{!!participants.length && (
Expand Down

0 comments on commit 7eac0bd

Please sign in to comment.