Fix formatting breakage

This commit is contained in:
Marshall Bowers 2023-12-20 11:41:51 -05:00
parent 5145795f33
commit 3886b1993d

View file

@ -1624,40 +1624,43 @@ impl CollabPanel {
} }
fn render_signed_out(&mut self, cx: &mut ViewContext<Self>) -> Div { fn render_signed_out(&mut self, cx: &mut ViewContext<Self>) -> Div {
v_stack() let collab_blurb = "Work with your team in realtime with collaborative editing, voice, shared notes and more.";
.items_center()
.child(v_stack().gap_6().p_4()
.child(
Label::new("Work with your team in realtime with collaborative editing, voice, shared notes and more.")
)
.child(v_stack().gap_2()
v_stack().items_center().child(
v_stack()
.gap_6()
.p_4()
.child(Label::new(collab_blurb))
.child( .child(
Button::new("sign_in", "Sign in") v_stack()
.icon_color(Color::Muted) .gap_2()
.icon(Icon::Github) .child(
.icon_position(IconPosition::Start) Button::new("sign_in", "Sign in")
.style(ButtonStyle::Filled) .icon_color(Color::Muted)
.full_width() .icon(Icon::Github)
.on_click(cx.listener( .icon_position(IconPosition::Start)
|this, _, cx| { .style(ButtonStyle::Filled)
let client = this.client.clone(); .full_width()
cx.spawn(|_, mut cx| async move { .on_click(cx.listener(|this, _, cx| {
client let client = this.client.clone();
.authenticate_and_connect(true, &cx) cx.spawn(|_, mut cx| async move {
.await client
.notify_async_err(&mut cx); .authenticate_and_connect(true, &cx)
}) .await
.detach() .notify_async_err(&mut cx);
}, })
))) .detach()
.child( })),
div().flex().w_full().items_center().child( )
Label::new("Sign in to enable collaboration.") .child(
.color(Color::Muted) div().flex().w_full().items_center().child(
.size(LabelSize::Small) Label::new("Sign in to enable collaboration.")
)), .color(Color::Muted)
)) .size(LabelSize::Small),
),
),
),
)
} }
fn render_list_entry(&mut self, ix: usize, cx: &mut ViewContext<Self>) -> AnyElement { fn render_list_entry(&mut self, ix: usize, cx: &mut ViewContext<Self>) -> AnyElement {