Skip to content

Commit

Permalink
One-digit unread badges should be round
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanHahn-Signal committed Oct 28, 2021
1 parent 17c0867 commit da3c7c7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 1 addition & 6 deletions stylesheets/_modules.scss
Expand Up @@ -5171,7 +5171,6 @@ button.module-image__border-overlay:focus {

@include font-caption-bold;
border-radius: 10px;
box-sizing: content-box;
color: $color-white;
font-weight: 500;
height: $size;
Expand Down Expand Up @@ -5201,6 +5200,7 @@ button.module-image__border-overlay:focus {

&--two-digits,
&--many {
box-sizing: content-box;
padding-left: 4px;
padding-right: 4px;
}
Expand All @@ -5214,11 +5214,6 @@ button.module-image__border-overlay:focus {
font-size: 9px;
}
}

&--marked-unread {
padding-left: 0;
padding-right: 0;
}
}

&__content {
Expand Down
2 changes: 0 additions & 2 deletions ts/components/conversationList/BaseConversationListItem.tsx
Expand Up @@ -240,8 +240,6 @@ function UnreadIndicator({ count = 0 }: Readonly<{ count?: number }>) {
classModifier = 'many';
} else if (count > 9) {
classModifier = 'two-digits';
} else if (count === 0) {
classModifier = 'marked-unread';
}

return (
Expand Down

0 comments on commit da3c7c7

Please sign in to comment.