Skip to content

Commit

Permalink
Add the -2px margin to cover the last avatar's right border
Browse files Browse the repository at this point in the history
  • Loading branch information
paultsimura committed Nov 16, 2023
1 parent ae2392b commit a9a7202
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/components/ReportActionItem/MoneyRequestPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,15 @@ function MoneyRequestPreview(props) {
)}
</View>
{props.isBillSplit && (
<MultipleAvatars
icons={participantAvatars}
shouldStackHorizontally
size="small"
isHovered={props.isHovered}
shouldUseCardBackground
/>
<View style={styles.moneyRequestPreviewBoxAvatar}>
<MultipleAvatars
icons={participantAvatars}
shouldStackHorizontally
size="small"
isHovered={props.isHovered}
shouldUseCardBackground
/>
</View>
)}
</View>
{shouldShowMerchant && (
Expand Down
6 changes: 6 additions & 0 deletions src/styles/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2658,6 +2658,12 @@ const styles = (theme: ThemeColors) =>
width: '100%',
},

moneyRequestPreviewBoxAvatar: {
// This should "hide" the right border of the last avatar
marginRight: -2,
marginBottom: 0,
},

moneyRequestPreviewAmount: {
...headlineFont,
...whiteSpace.preWrap,
Expand Down

0 comments on commit a9a7202

Please sign in to comment.