Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
agent: Fix instruction list item with multiple buttons not working (#30541)
Danilo Leal83319c8a6d7d
diff --git a/crates/language_models/src/ui/instruction_list_item.rs b/crates/language_models/src/ui/instruction_list_item.rsindex d3442cf8159..af744b0ae3b 100644--- a/crates/language_models/src/ui/instruction_list_item.rs+++ b/crates/language_models/src/ui/instruction_list_item.rs@@ -38,8 +38,10 @@ impl IntoElement for InstructionListItem {(self.button_label, self.button_link){let link = button_link.clone();+ let unique_id = SharedString::from(format!("{}-button", self.label));+h_flex().flex_wrap().child(Label::new(self.label)).child(- Button::new("link-button", button_label)+ Button::new(unique_id, button_label).style(ButtonStyle::Subtle).icon(IconName::ArrowUpRight).icon_size(IconSize::XSmall)