Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Update collab panel signed out state

Nate Butler89b231afebe7
diff --git a/crates/collab_ui2/src/collab_panel.rs b/crates/collab_ui2/src/collab_panel.rs
index a845e117d5f..18d9916bb38 100644
--- a/crates/collab_ui2/src/collab_panel.rs
+++ b/crates/collab_ui2/src/collab_panel.rs
@@ -2028,17 +2028,20 @@ impl CollabPanel {
fn render_signed_out(&mut self, cx: &mut ViewContext<Self>) -> Div {
v_stack()
- .justify_center()
+ // .flex_1()
+ // .justify_center()
.items_center()
- .child(v_stack().gap_1().p_4()
+ .child(v_stack().gap_6().p_4()
.child(
- Label::new("Work with your team with realtive collaborative editing, voice, shared notes and more.")
- )
- .child(
- Label::new("Sign in to enable collaboration.")
+ Label::new("Work with your team in realtime with collaborative editing, voice, shared notes and more.")
)
+ .child(v_stack().gap_2()
+
.child(
Button::new("sign_in", "Sign in")
+ .icon_color(Color::Muted)
+ .icon(Icon::Github)
+ .icon_position(IconPosition::Start)
.style(ButtonStyle::Filled)
.full_width()
.on_click(cx.listener(
@@ -2052,6 +2055,12 @@ impl CollabPanel {
})
.detach()
},
+ )))
+ .child(
+ div().flex().w_full().items_center().child(
+ Label::new("Sign in to enable collaboration.")
+ .color(Color::Muted)
+ .size(LabelSize::Small)
)),
))
}