Skip to content

Commit 9bc4ff1

Browse files
committed
fix(editor): rebalance per-heading chat unread badges
Unread counts on heading chat controls were as loud as the icon on desktop. Tighten the pseudo-badge and anchor it to the control. Bump the mobile docked-tab figure size slightly so short counts stay legible on the smaller tab. Made-with: Cursor
1 parent 6739ebd commit 9bc4ff1

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

packages/webapp/src/styles/_mobile.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ html.m_mobile #__next {
228228
background-color: var(--color-error) !important;
229229
color: var(--color-error-content) !important;
230230
border-radius: 0.35rem;
231-
font-size: 0.6875rem;
231+
font-size: 0.78rem;
232232
font-weight: 600;
233233
line-height: 1;
234234
order: -1;

packages/webapp/src/styles/components/_unread-badge.scss

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,20 @@
6161

6262
// =============================================================================
6363
// Heading Actions — badge only on .ha-chat-btn (not .ha-group) to avoid duplicates
64+
// Hit target is size-11 (2.75rem ≈ 44px): keep badge clearly subordinate to the icon.
6465
// =============================================================================
6566
.ha-chat-btn[data-unread-count]:not([data-unread-count='']) {
66-
@include unread-badge($top: 0, $right: 0, $size: 20px, $font-size: 16px);
67+
@include unread-badge($top: -1px, $right: -1px, $size: 18px, $font-size: 13px);
6768
visibility: visible !important;
6869

6970
&::before {
70-
left: 23px;
71-
right: auto;
71+
left: auto;
72+
padding: 0 4px;
73+
font-weight: 600;
74+
letter-spacing: -0.02em;
75+
// Upper-right of the circle without dominating the 44px hit target
76+
top: 1px;
77+
right: 1px;
7278
}
7379

7480
&::after {

0 commit comments

Comments
 (0)