Skip to content

Commit

Permalink
Fix avatar hover issue in the case of multiple avatars
Browse files Browse the repository at this point in the history
  • Loading branch information
spcheema committed Aug 15, 2023
1 parent 301ad35 commit 8ff1d2f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/components/RoomHeaderAvatars.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ function RoomHeaderAvatars(props) {
>
{({show}) => (
<PressableWithoutFocus
style={[styles.noOutline]}
onPress={show}
accessibilityRole={CONST.ACCESSIBILITY_ROLE.IMAGEBUTTON}
accessibilityLabel={props.icons[0].name}
Expand Down Expand Up @@ -80,6 +81,7 @@ function RoomHeaderAvatars(props) {
>
{({show}) => (
<PressableWithoutFocus
style={[styles.mln4, StyleUtils.getAvatarBorderRadius(CONST.AVATAR_SIZE.LARGE_BORDERED, icon.type)]}
onPress={show}
accessibilityRole={CONST.ACCESSIBILITY_ROLE.IMAGEBUTTON}
accessibilityLabel={icon.name}
Expand All @@ -101,6 +103,7 @@ function RoomHeaderAvatars(props) {
style={[
styles.roomHeaderAvatarSize,
styles.roomHeaderAvatar,
styles.mln4,
...iconStyle,
StyleUtils.getAvatarBorderRadius(CONST.AVATAR_SIZE.LARGE_BORDERED, icon.type),
styles.roomHeaderAvatarOverlay,
Expand Down
1 change: 0 additions & 1 deletion src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -2358,7 +2358,6 @@ const styles = {

roomHeaderAvatar: {
backgroundColor: themeColors.appBG,
marginLeft: -16,
borderRadius: 100,
borderColor: themeColors.componentBG,
borderWidth: 4,
Expand Down
4 changes: 4 additions & 0 deletions src/styles/utilities/spacing.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ export default {
marginLeft: 16,
},

mln4: {
marginLeft: -16,
},

ml5: {
marginLeft: 20,
},
Expand Down

0 comments on commit 8ff1d2f

Please sign in to comment.