diff --git a/crates/voelin-gpui/src/shell/widgets.rs b/crates/voelin-gpui/src/shell/widgets.rs index 18829d4..487ba5c 100644 --- a/crates/voelin-gpui/src/shell/widgets.rs +++ b/crates/voelin-gpui/src/shell/widgets.rs @@ -181,7 +181,10 @@ impl RenderOnce for Avatar { .justify_center() .bg(hsla(if key.is_some() { c.surface_3 } else { tint(self.tint) })); let face = match key { - Some(key) => face.child(picture(key).size_full().object_fit(ObjectFit::Cover)), + // The picture rounds its own corners: a parent's `overflow_hidden` + // clips to a rectangle. + Some(key) => face + .child(picture(key).size_full().rounded(px(radius)).object_fit(ObjectFit::Cover)), None => { let (letters, size) = initials_for(&self.initials, self.size); face.child(