Skip to content

Commit

Permalink
Merge pull request #22595 from Expensify/multiplavatars-background-fix
Browse files Browse the repository at this point in the history
Fix clickable area of multiple avatars component

(cherry picked from commit 69e5ee3)
  • Loading branch information
stitesExpensify authored and OSBotify committed Jul 10, 2023
1 parent 1e0e54e commit 69563f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/MultipleAvatars.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ function MultipleAvatars(props) {
// Height of one avatar + border space
const height = oneAvatarSize.height + 2 * oneAvatarBorderWidth;
if (props.icons.length > 4) {
// Width of overlapping avatars + border space
width = oneAvatarSize.width * 3 + oneAvatarBorderWidth * 8;
const length = avatarRows.length > 1 ? Math.max(avatarRows[0].length, avatarRows[1].length) : avatarRows[0].length;
width = oneAvatarSize.width + overlapSize * 2 * (length - 1) + oneAvatarBorderWidth * (length * 2);
} else {
// one avatar width + overlaping avatar sizes + border space
width = oneAvatarSize.width + overlapSize * 2 * (props.icons.length - 1) + oneAvatarBorderWidth * (props.icons.length * 2);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/home/report/ReportActionItemCreated.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function ReportActionItemCreated(props) {
>
<PressableWithoutFeedback
onPress={() => ReportUtils.navigateToDetailsPage(props.report)}
style={[styles.ph5, styles.pb3, styles.alignSelfStart]}
style={[styles.mh5, styles.mb3, styles.alignSelfStart]}
accessibilityLabel={props.translate('common.details')}
accessibilityRole={CONST.ACCESSIBILITY_ROLE.BUTTON}
>
Expand Down

0 comments on commit 69563f6

Please sign in to comment.