From 40beda76dc9068375897652c911446cd3257b666 Mon Sep 17 00:00:00 2001 From: Ren Amamiya Date: Mon, 16 Nov 2026 19:32:01 +0700 Subject: [PATCH] Shift avatar sizes down one class - Map avatar small to xsmall, medium to small, and large to medium. --- crates/core/src/avatar.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/core/src/avatar.rs b/crates/core/src/avatar.rs index 2fc4333..2e92423 100644 --- a/crates/core/src/avatar.rs +++ b/crates/core/src/avatar.rs @@ -92,7 +92,13 @@ impl gpui::Styled for Avatar { impl RenderOnce for Avatar { fn render(self, _window: &mut Window, cx: &mut App) -> impl IntoElement { let theme = cx.theme(); - let side = theme.sizes.resolve(self.size).avatar_size; + // Avatars sit one class below the shared control scale. + let size = match self.size { + Size::XSmall | Size::Small => Size::XSmall, + Size::Medium => Size::Small, + Size::Large => Size::Medium, + }; + let side = theme.sizes.resolve(size).avatar_size; let radius = if self.fully_rounded { theme.radius.full