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 15:48:39 -07:00 committed by GitHub
parent b18ca1585e
commit d1abbb1429
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 47 additions and 24 deletions

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 {