Skip to content

[M2] Unify avatar sizes #95598

Description

@mountiny

Problem

CONST.AVATAR_SIZE has confusing, overlapping names (LARGE_NORMAL < MEDIUM, LARGE_BORDERED = 80px + border baked in, one-off sizes used once). This makes avatar sizing hard to reason about and blocks clean primitive APIs.

Solution

Rename/consolidate CONST.AVATAR_SIZE to a consistent ordinal scale. Remove rarely-used sizes by mapping call sites to nearest existing size. Separate border width from size enum (e.g. LARGE_BORDEREDX_LARGE size + border via StyleUtils, not size + 8px).

PR

#95275

Origin

#94682 (comment)

Dependencies

Independent of M1/M3/M4 but touches many of the same files — coordinate merge/rebase with M1.

Issue OwnerCurrent Issue Owner: @jmusial

Metadata

Metadata

Labels

InternalRequires API changes or must be handled by Expensify staffReviewingHas a PR in reviewTaskWeeklyKSv2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions