diff --git a/crates/client/src/gui/chat.rs b/crates/client/src/gui/chat.rs index e214c9c..750a999 100644 --- a/crates/client/src/gui/chat.rs +++ b/crates/client/src/gui/chat.rs @@ -3228,25 +3228,18 @@ fn members_column( let action = entity_action(&entity, move |yumush, window, cx| { yumush.toggle_voice(community_id, window, cx) }); - if in_call.is_empty() { - return super::parts::pill("margin_join", palette.tokens, action) - .self_start() - .gap(px(space::SM)) - .text_color(palette.tokens.ground()) - .font_weight(FontWeight::SEMIBOLD) - .child(super::parts::small_icon(IconName::Headphones)) - .child(w().chat.join_voice); - } - clickable("margin_join", palette, action) - .h(px(size::CHIP)) - .px(px(space::XS)) - .flex() - .items_center() + let empty = in_call.is_empty(); + let pill = super::parts::pill("margin_join", palette.tokens, action) + .self_start() .gap(px(space::SM)) - .rounded(px(radius::MD)) - .text_color(palette.accent) - .child(super::parts::small_icon(IconName::Headphones)) - .child(w().chat.join) + .text_color(palette.tokens.ground()) + .font_weight(FontWeight::SEMIBOLD) + .child(super::parts::small_icon(IconName::Headphones)); + if empty { + pill.child(w().chat.join_voice) + } else { + pill.h(px(size::CHIP)).px(px(space::SM)).child(w().chat.join) + } }); let call = if in_call.is_empty() { join.map(|join| div().child(join))