Skip to content

Commit bc566fe

Browse files
authored
agent2: Tweak usage callout border (#36777)
Release Notes: - N/A
1 parent 91b2a84 commit bc566fe

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

crates/agent_ui/src/ui/preview/usage_callouts.rs

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -86,23 +86,18 @@ impl RenderOnce for UsageCallout {
8686
(IconName::Warning, Severity::Warning)
8787
};
8888

89-
div()
90-
.border_t_1()
91-
.border_color(cx.theme().colors().border)
92-
.child(
93-
Callout::new()
94-
.icon(icon)
95-
.severity(severity)
96-
.icon(icon)
97-
.title(title)
98-
.description(message)
99-
.actions_slot(
100-
Button::new("upgrade", button_text)
101-
.label_size(LabelSize::Small)
102-
.on_click(move |_, _, cx| {
103-
cx.open_url(&url);
104-
}),
105-
),
89+
Callout::new()
90+
.icon(icon)
91+
.severity(severity)
92+
.icon(icon)
93+
.title(title)
94+
.description(message)
95+
.actions_slot(
96+
Button::new("upgrade", button_text)
97+
.label_size(LabelSize::Small)
98+
.on_click(move |_, _, cx| {
99+
cx.open_url(&url);
100+
}),
106101
)
107102
.into_any_element()
108103
}

0 commit comments

Comments
 (0)