style(ui): counters on labels sit right after the word
The counter hung at the label's right edge with a fixed 12 px gap, so two-digit numbers covered part of the last letter. It now follows the word in the text flow (position="text"): only its ring overlaps, the same for any number of digits, and wide numbers widen the tab. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8989321bdd
commit
92993c2dd2
6 files changed
+29
-19
No files matched your search
@@ -1063,9 +1063,9 @@ export const SharedListsView: React.FC<SharedListsViewProps> = ({ onRefreshGloba
|
||||
>
|
||||
<span>{lst.icon}</span>
|
||||
{/* Counter on the label, like in the nav bar */}
|
||||
<span className={`relative inline-flex items-center ${openCount > 0 ? 'pr-3' : ''}`}>
|
||||
<span className="inline-flex items-center">
|
||||
{lst.title}
|
||||
<CountBadge count={openCount} position="corner" className="-top-0.5 -right-2" />
|
||||
<CountBadge count={openCount} position="text" />
|
||||
</span>
|
||||
<AvatarStack
|
||||
people={otherMembers(lst)}
|
||||
|
||||
Reference in new issue
Block a user