diff --git a/crates/ui/src/components/avatar.rs b/crates/ui/src/components/avatar.rs index 19f7c4660bc64e756950df6f5ab0e19192f4096b..551ab4e3edff90f3b987ddd5ef19cfdeae1fa214 100644 --- a/crates/ui/src/components/avatar.rs +++ b/crates/ui/src/components/avatar.rs @@ -91,7 +91,12 @@ impl RenderOnce for Avatar { self.image .size(image_size) .rounded_full() - .bg(cx.theme().colors().ghost_element_background), + .bg(cx.theme().colors().ghost_element_background) + .with_fallback(|| { + Icon::new(IconName::Person) + .color(Color::Muted) + .into_any_element() + }), ) .children(self.indicator.map(|indicator| div().child(indicator))) }