Commit 968225d
fix(dashboard): drop the ring and give the teams row more room (#445)
* fix(dashboard): drop hardcoded white ring from member avatars
The avatar stack in UserGroup drew a `ring-2 ring-surface-white` on each
Avatar to fake separation across the negative overlap. The colour is
hardcoded, so it read as an odd border on the hover-tinted team rows and
on dark surfaces. Replace the overlap and ring with a plain gap so the
avatars use frappe-ui's own colours only.
frappe-ui 1.0.0-beta.55 ships no AvatarGroup component, so the stack
stays hand-rolled.
Closes #431
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016kQ1Dp7xRj9mVNuYGeVYB2
* fix(dashboard): make the member avatar ring a real colour
`UserGroup` drew `ring-2 ring-surface-white` on each `Avatar` to separate the
overlapping stack, but that utility never compiled: the frappe-ui Tailwind
plugin extends `ringColor` with only `outline` and `outline-alpha`, and its
colour palette has no `surface-*` keys. The avatars overlapped with no gap at
all.
Keep the overlap and point the ring at the CSS variables instead, tracking the
row's hover tint so the separation holds on both the resting and hovered row.
* fix(dashboard): drop the ring from the member avatar stack
The ring only existed to separate the overlapping avatars, and the overlap
only existed because the ring supplied the edge. Drop both and space the
avatars with a plain `gap-1`, so the stack carries no surface colour of its
own and no longer depends on what the row behind it is tinted.
* fix(dashboard): drop the ring and give the teams row more room
The ring drawn on each stacked avatar never rendered: the frappe-ui Tailwind
plugin extends `ringColor` with only `outline` and `outline-alpha`, and its
colour palette has no `surface-*` keys, so `ring-surface-white` compiled to
nothing. Remove it rather than pick a new colour — the overlap reads fine
without an edge, and the stack then carries no surface colour to mismatch the
row's hover tint.
Shrink the member count to `text-sm`, widen the members column and indent the
grid so the team logo no longer sits flush against the panel edge.
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 66575b8 commit 968225d
2 files changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
35 | | - | |
36 | 34 | | |
37 | 35 | | |
38 | | - | |
| 36 | + | |
39 | 37 | | |
40 | 38 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments