Skip to content

Commit c0e620a

Browse files
committed
fix(styles): update unread message count badge styles
1 parent a21070f commit c0e620a

File tree

2 files changed

+11
-20
lines changed

2 files changed

+11
-20
lines changed

packages/webapp/src/styles/components/_heading-actions.scss

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,19 +78,23 @@
7878

7979
// Unread message count badge
8080
.ha-chat-btn[data-unread-count]:not([data-unread-count='']) {
81-
// Hide the chat icon when showing count
82-
.chatLeft {
83-
display: none;
84-
}
85-
8681
// Show count inside button
8782
&::before {
8883
content: attr(data-unread-count);
8984
color: #fff;
90-
font-weight: 600;
91-
font-size: 12px;
85+
font-weight: semibold;
9286
display: flex;
9387
align-items: center;
9488
justify-content: center;
89+
transform: none;
90+
opacity: 1;
91+
background-color: red !important;
92+
font-size: 16px;
93+
top: 0px;
94+
right: 0px;
95+
left: 23px;
96+
}
97+
&::after {
98+
display: none;
9599
}
96100
}

packages/webapp/src/styles/styles.scss

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -305,19 +305,6 @@ $bg-root: #f8f9fa;
305305
&[data-unread-count] {
306306
visibility: visible;
307307
}
308-
&[data-unread-count]::after {
309-
content: attr(data-unread-count);
310-
position: absolute;
311-
top: -2px;
312-
right: -2px;
313-
background: red;
314-
color: white;
315-
border-radius: 50%;
316-
font-size: 14px;
317-
min-width: 24px;
318-
text-align: center;
319-
padding: 2px 4px;
320-
}
321308
svg {
322309
position: relative;
323310
top: 1px;

0 commit comments

Comments
 (0)