Skip to content

Commit

Permalink
fix(AvatarWrapper): use team icon as participant, fix dark mode
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Mar 19, 2024
1 parent 8d239df commit 68b5a34
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/components/AvatarWrapper/AvatarWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,15 @@ export default {
if (this.source === ATTENDEE.ACTOR_TYPE.BOTS && this.id === ATTENDEE.CHANGELOG_BOT_ID) {
return 'icon-changelog'
}
// source: groups, circles
if (this.source === ATTENDEE.ACTOR_TYPE.CIRCLES) {
return 'icon-team'
}
// source: groups
return 'icon-contacts'
},
avatarClass() {
return {
'avatar-wrapper--dark': isDarkTheme,
'avatar-wrapper--offline': this.offline,
'avatar-wrapper--condensed': this.condensed,
'avatar-wrapper--highlighted': this.highlighted,
Expand Down Expand Up @@ -211,6 +215,10 @@ export default {
width: var(--avatar-size);
border-radius: var(--avatar-size);

&--dark .avatar {
background-color: #3B3B3B !important;
}

.avatar {
position: sticky;
top: 0;
Expand All @@ -219,9 +227,9 @@ export default {
line-height: var(--avatar-size);
font-size: calc(var(--avatar-size) / 2);
border-radius: 50%;
background-color: var(--color-text-maxcontrast-default);

&.icon {
background-color: var(--color-background-darker);
background-size: calc(var(--avatar-size) / 2);
&.icon-changelog {
background-size: cover !important;
Expand All @@ -235,7 +243,6 @@ export default {

&.guest {
color: #ffffff;
background-color: #b9b9b9;
padding: 0;
display: block;
text-align: center;
Expand Down

0 comments on commit 68b5a34

Please sign in to comment.