Repository navigation
fix(web): keep avatar initials inside avatars and enlarge them - #826
Conversation
AvatarFallback sets its own text size, which overrode the smaller size EntityAvatar put on the root, so initials spilled out of xs/sm avatars. Apply the size-matched font size on the fallback itself. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
There was a problem hiding this comment.
ℹ️ Minor suggestions only — the fix itself is correct.
Approach: sound — the overflow comes from AvatarFallback's own text-sm outranking the font size inherited from the Avatar root, so setting the size-matched value on the fallback is the narrowest fix and covers every EntityAvatar size at once. (The primitive's group-data-[size=sm]/avatar:text-xs never applies here, since EntityAvatar does not forward size to Avatar.)
Reviewed changes
- Root cause addressed on the fallback —
FALLBACK_TEXT[size]is merged ontoAvatarFallback, wheretwMergedisplaces the primitive'stext-sm, soxs/sminitials now render at 9/10px instead of 14px. leading-noneadded — neutral for centering (the fallback is a flex box) and prevents the arbitrary font sizes from inheriting a stale line-height.- Call sites checked — every
EntityAvatarthat overrides the box viaclassName(size="lg" className="size-9",AvatarUploadwithsize="xl"/"lg"insidesize-14/size-12frames) still declares a size at or above the rendered box, so no new overflow case is introduced; customfallbacknodes are all icons with their own explicit size.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
Step the task row/card avatars up one size (20 -> 24px, 24 -> 32px) so initials are easier to read. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
There was a problem hiding this comment.
ℹ️ No critical issues — minor suggestions inline.
Reviewed changes
- Table avatars enlarged — the
AssigneePickermdsize used by the task table and the table reporter moved from 24px to 32px (size="default"), with fallback icons bumped tosize-4. - Card avatars enlarged — the picker's default
smsize (board card, subtask rows, gantt row) and the card reporter moved from 20px to 24px, with fallback icons bumped tosize-3. - Size map kept in step —
AVATAR_SIZEnow pairssmwith the 24pxEntityAvatarandmdwith the 32pxdefault, so the empty/auto/+Ncircles match the avatars they stand in for.
Note: 1 inline comment(s) dropped:
apps/web/src/components/projects/interactions/assignee-picker.tsx:24-25(RIGHT) — no comment text
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
pikann
left a comment
There was a problem hiding this comment.
LGTM! Thank you for the contribution! 🚀
The folder mark stayed at size-3 (12px) when the avatar grew from 20px to 24px, shrinking it from 60% to 50% of the box. size-3.5 keeps the ratio, matching how Paca-AI#826 scaled its fallback icons. Co-Authored-By: Claude Opus 5.5 <[email protected]>

Summary
EntityAvatarset the small font size on the root, butAvatarFallbackhas its owntext-smwhich won. The size-matched font size is now applied on the fallback itself (plusleading-none).Test plan
tscand Biome cleansrc/componentspasses🤖 Generated with Claude Code