From c6a1d9aa3386c6109220b3bf89a5f6e0623e8f71 Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Tue, 13 Aug 2024 17:31:46 -0300 Subject: [PATCH] assistant: Polish terms of service toast design (#16183) Pushing in tiny design tweaks and wording change on the button so it's a bit more explicit. Release Notes: - N/A --- crates/language_model/src/provider/cloud.rs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/crates/language_model/src/provider/cloud.rs b/crates/language_model/src/provider/cloud.rs index a8418ff8f8..c96662624d 100644 --- a/crates/language_model/src/provider/cloud.rs +++ b/crates/language_model/src/provider/cloud.rs @@ -275,12 +275,16 @@ impl LanguageModelProvider for CloudLanguageModelProvider { let disabled = state.accept_terms.is_some(); Some( v_flex() - .child(Label::new("Terms & Conditions").weight(FontWeight::SEMIBOLD)) - .child("Please read and accept the terms and conditions of Zed AI and our provider partners to continue.") - .child(v_flex().m_2().gap_1().children(terms)) + .gap_2() .child( - h_flex().justify_end().mt_1().child( - Button::new("accept_terms", "Accept") + v_flex() + .child(Label::new("Terms & Conditions").weight(FontWeight::MEDIUM)) + .child(Label::new("Please read and accept the terms and conditions of Zed AI and our provider partners to continue.").size(LabelSize::Small)) + ) + .child(v_flex().gap_1().children(terms)) + .child( + h_flex().justify_end().child( + Button::new("accept_terms", "I've read it and accept it") .disabled(disabled) .on_click({ let state = self.state.downgrade();