diff --git a/crates/client/src/gui/auth.rs b/crates/client/src/gui/auth.rs index 6f5f2b8..15a4b2a 100644 --- a/crates/client/src/gui/auth.rs +++ b/crates/client/src/gui/auth.rs @@ -1,3 +1,4 @@ +use gpui_kit::prelude::FluentBuilder as _; use gpui_kit::{ AnyElement, Context, Div, Entity, FontWeight, IntoElement, ParentElement, StatefulInteractiveElement, Styled, Window, @@ -220,14 +221,16 @@ impl Yumush { .child(password_field(palette, &self.auth.password_input)) .children(invite) .child(action_button) + .children(connection_notice(&self.connection, palette)) .child(server_toggle( &entity, &self.network.server().address, self.auth.server_open, palette, )) - .children(self.auth.server_open.then(|| { + .child( div() + .when(!self.auth.server_open, |this| this.invisible()) .flex() .flex_col() .gap(px(space::SM)) @@ -255,9 +258,8 @@ impl Yumush { } }, )), - ) - })) - .children(connection_notice(&self.connection, palette)), + ), + ), ) }