From 56a15dbfe7d4a841cf6219f8f0f968d46abb012d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sat, 28 Nov 2026 01:13:35 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20style:=20opening=20the=20login?= =?UTF-8?q?=20server=20section=20no=20longer=20shifts=20the=20card=20(spac?= =?UTF-8?q?e=20is=20kept,=20section=20only=20shows);=20connection=20notice?= =?UTF-8?q?=20sits=20right=20under=20Log=20in?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/client/src/gui/auth.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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)), + ), + ), ) }