Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
Avoid avatars to be shrinked by flexbox policies (#3750)
Browse files Browse the repository at this point in the history
* Avoid avatars to be shrinked by flexbox policies

* fixing post avatar size
  • Loading branch information
jespino committed Sep 24, 2019
1 parent 307ccc6 commit 0bd4112
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion components/post_profile_picture/post_profile_picture.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default class PostProfilePicture extends React.PureComponent {
hasMention={hasMention}
isBusy={isBusy}
isRHS={isRHS}
size='lg'
size='md'
src={src}
profileSrc={profileSrc}
isEmoji={isEmoji}
Expand Down
6 changes: 6 additions & 0 deletions components/widgets/users/avatar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,32 @@
border-radius: 50%;
&.Avatar-xs {
width: 16px;
min-width: 16px;
height: 16px;
}
&.Avatar-sm {
width: 24px;
min-width: 24px;
height: 24px;
}
&.Avatar-md {
width: 32px;
min-width: 32px;
height: 32px;
}
&.Avatar-lg {
width: 36px;
min-width: 36px;
height: 36px;
}
&.Avatar-xl {
width: 50px;
min-width: 50px;
height: 50px;
}
&.Avatar-xxl {
width: 128px;
min-width: 128px;
height: 128px;
}
}
11 changes: 2 additions & 9 deletions sass/layout/_post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1461,24 +1461,17 @@
}

.profile-icon {
@include border-radius(50px);
display: inline-flex;
overflow: hidden;
justify-content: center;
align-items: center;

img {
max-width: none;
vertical-align: inherit;
height: 32px;
width: 32px;
}

&.emoji {
@include border-radius(unset);
img {
@include border-radius(unset);
height: 28px;
width: 28px;
min-width: 28px;
}
}
}
Expand Down

0 comments on commit 0bd4112

Please sign in to comment.