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
This commit is contained in:
Danilo Leal 2024-08-13 17:31:46 -03:00 committed by GitHub
parent 07c21bb8ee
commit c6a1d9aa33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();