agent2: Tweak usage callout border (#36777)

Release Notes:

- N/A
This commit is contained in:
Bennet Bo Fenner 2025-08-23 00:35:26 +02:00 committed by GitHub
parent 91b2a84001
commit bc566fe18e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,23 +86,18 @@ impl RenderOnce for UsageCallout {
(IconName::Warning, Severity::Warning) (IconName::Warning, Severity::Warning)
}; };
div() Callout::new()
.border_t_1() .icon(icon)
.border_color(cx.theme().colors().border) .severity(severity)
.child( .icon(icon)
Callout::new() .title(title)
.icon(icon) .description(message)
.severity(severity) .actions_slot(
.icon(icon) Button::new("upgrade", button_text)
.title(title) .label_size(LabelSize::Small)
.description(message) .on_click(move |_, _, cx| {
.actions_slot( cx.open_url(&url);
Button::new("upgrade", button_text) }),
.label_size(LabelSize::Small)
.on_click(move |_, _, cx| {
cx.open_url(&url);
}),
),
) )
.into_any_element() .into_any_element()
} }