assistant2: Make context pills clickable (#27680)

Release Notes:

- N/A
This commit is contained in:
Bennet Bo Fenner
2025-03-28 19:05:30 +00:00
committed by GitHub
parent 94ed0b7767
commit fcadcbb510
5 changed files with 189 additions and 53 deletions
+3 -1
View File
@@ -162,7 +162,9 @@ impl RenderOnce for ContextPill {
})
.when_some(on_click.as_ref(), |element, on_click| {
let on_click = on_click.clone();
element.on_click(move |event, window, cx| on_click(event, window, cx))
element
.cursor_pointer()
.on_click(move |event, window, cx| on_click(event, window, cx))
}),
ContextPill::Suggested {
name,