assistant2: Refine editing of previous messages (#11233)

This PR refines the UX of editing a previous message, including the
following:

- Focus the prev message body editor on double-click
- Restore previous body text on cancel
- Cancel pending completion upon submission of previous message
- Drive-by: Remove min height on composer editor

Release Notes:

- N/A

---------

Co-authored-by: Marshall Bowers <marshall@zed.dev>
This commit is contained in:
Nathan Sobo
2024-04-30 16:48:39 -06:00
committed by GitHub
co-authored by Marshall Bowers
parent b18ca1585e
commit d1abbb1429
2 changed files with 47 additions and 24 deletions
+1 -2
View File
@@ -69,8 +69,7 @@ impl RenderOnce for Composer {
v_flex()
.justify_between()
.w_full()
.gap_1()
.min_h(line_height * 4 + px(74.0))
.gap_2()
.child({
let settings = ThemeSettings::get_global(cx);
let text_style = TextStyle {