From 03cece23c2bbbbc59665d8ee03e16fba93283841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sun, 29 Nov 2026 07:03:27 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style:=20'Join'=20next=20to=20In?= =?UTF-8?q?=20voice=20uses=20the=20same=20filled=20pill=20as=20'Join=20voi?= =?UTF-8?q?ce',=20at=20chip=20height?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/client/src/gui/chat.rs | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) 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))