diff --git a/crates/title_bar/src/title_bar.rs b/crates/title_bar/src/title_bar.rs index 799d76cef30a2ca1a4eb705a307d3b366e1363f9..55834d982fa87e5d9245af4ca7c2bcf77f3791f8 100644 --- a/crates/title_bar/src/title_bar.rs +++ b/crates/title_bar/src/title_bar.rs @@ -318,21 +318,24 @@ impl TitleBar { Some( ButtonLike::new("ssh-server-icon") .child( - IconWithIndicator::new( - Icon::new(IconName::Server) - .size(IconSize::XSmall) - .color(icon_color), - Some(Indicator::dot().color(indicator_color)), - ) - .indicator_border_color(Some(cx.theme().colors().title_bar_background)) - .into_any_element(), - ) - .child( - div() + h_flex() + .gap_2() .max_w_32() - .overflow_hidden() - .text_ellipsis() - .child(Label::new(nickname.clone()).size(LabelSize::Small)), + .child( + IconWithIndicator::new( + Icon::new(IconName::Server) + .size(IconSize::XSmall) + .color(icon_color), + Some(Indicator::dot().color(indicator_color)), + ) + .indicator_border_color(Some(cx.theme().colors().title_bar_background)) + .into_any_element(), + ) + .child( + Label::new(nickname.clone()) + .size(LabelSize::Small) + .text_ellipsis(), + ), ) .tooltip(move |cx| { Tooltip::with_meta("Remote Project", Some(&OpenRemote), meta.clone(), cx)