Skip to content

Commit

Permalink
fix: outline for MultipleAvatars
Browse files Browse the repository at this point in the history
  • Loading branch information
parasharrajat committed Mar 24, 2021
1 parent d2b98b2 commit 4c0ec7e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/components/MultipleAvatars.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ const MultipleAvatars = ({avatarImageURLs, optionIsFocused, size}) => {
/>
<View
style={[
size === 'small' ? styles.singleAvatarSmall : styles.singleAvatar,
optionIsFocused ? styles.focusedAvatar : styles.avatar,
size === 'small' ? styles.secondAvatarSmall : styles.secondAvatar,
optionIsFocused ? styles.focusedAvatar : styles.avatar,
]}
>
{avatarImageURLs.length === 2 ? (
Expand Down
18 changes: 11 additions & 7 deletions src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -857,18 +857,20 @@ const styles = {

secondAvatar: {
position: 'absolute',
right: -13,
bottom: -14,
right: -18,
bottom: -18,
borderWidth: 3,
borderRadius: 30,
borderColor: 'transparent',
borderWidth: 2,
},

secondAvatarSmall: {
position: 'absolute',
right: -8,
bottom: -9,
right: -13,
bottom: -13,
borderWidth: 3,
borderRadius: 18,
borderColor: 'transparent',
borderWidth: 2,
},

avatarNormal: {
Expand Down Expand Up @@ -908,10 +910,12 @@ const styles = {

avatar: {
backgroundColor: themeColors.sidebar,
borderColor: themeColors.sidebar,
},

focusedAvatar: {
backgroundColor: themeColors.border,
backgroundColor: themeColors.pillBG,
borderColor: themeColors.pillBG,
},

emptyAvatar: {
Expand Down

0 comments on commit 4c0ec7e

Please sign in to comment.