Skip to content

Commit

Permalink
margin fix for subscriptAvatar
Browse files Browse the repository at this point in the history
  • Loading branch information
Pujan92 committed Oct 12, 2023
1 parent 9699988 commit 90733da
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/components/SubscriptAvatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,9 @@ function SubscriptAvatar({size, backgroundColor, mainAvatar, secondaryAvatar, no
const isSmall = size === CONST.AVATAR_SIZE.SMALL;
const subscriptStyle = size === CONST.AVATAR_SIZE.SMALL_NORMAL ? styles.secondAvatarSubscriptSmallNormal : styles.secondAvatarSubscript;
const containerStyle = StyleUtils.getContainerStyles(size);
// Default the margin style to what is normal for small or normal sized avatars
let marginStyle = isSmall ? styles.emptyAvatarMarginSmall : styles.emptyAvatarMargin;

// Some views like the chat view require that there be no margins
if (noMargin) {
marginStyle = {};
}

return (
<View style={[containerStyle, marginStyle]}>
<View style={[containerStyle, noMargin ? styles.mr0 : {}]}>
<UserDetailsTooltip
shouldRender={showTooltip}
accountID={lodashGet(mainAvatar, 'id', -1)}
Expand Down

0 comments on commit 90733da

Please sign in to comment.