ZIm/crates/collab_ui/src
Michael Sloan 681c88d4e7
Fix clicking in to agent message editor and tighten up vertical spacing (#32765)
* Adds `min_lines` to `EditorMode::AutoHeight` and use `min_lines: 4` in
agent message editor. This makes it so that clicks in the blank space
below the first line of the editor also focus it, instead of needing to
click the very first line.

* Removes the div wrapping the editor, as it was only there to set
`min_h_16()`. This also tightens up the min space given to the editor -
before it was not evenly dividing the number of lines.

* Further tightens up vertical spacing by using `gap_1` instead of
`gap_4` between editor and controls below

At 4 line min height (after on the left, before on the right):


![image](https://github.com/user-attachments/assets/e8eefb1b-9ea3-4f98-ad55-25f95760d61f)

At 5 lines, one more than min height (after on the left, before on the
right):


![image](https://github.com/user-attachments/assets/a6ba737c-6a56-4343-a55a-d264f2a06377)

Release Notes:

- Agent: Fixed clicking to focus the message editor to also work for
clicks below the last line.
2025-06-15 18:45:44 +00:00
..
chat_panel Add default method for CompletionProvider::resolve_completions (#32045) 2025-06-05 19:15:06 +00:00
collab_panel chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
notifications Use read() over read_with() to improve readability in simple cases (#31263) 2025-05-23 12:08:49 +00:00
channel_view.rs collab: Reconnect to channel notes (#31950) 2025-06-03 11:12:45 +02:00
chat_panel.rs Fix clicking in to agent message editor and tighten up vertical spacing (#32765) 2025-06-15 18:45:44 +00:00
collab_panel.rs Add channel reordering functionality (#31833) 2025-06-04 16:56:33 +00:00
collab_ui.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
notification_panel.rs Separate timeout and connection dropped errors out (#30457) 2025-05-10 15:12:58 +03:00
notifications.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
panel_settings.rs Revert "Hide the notifications panel by default (#32705)" (#32707) 2025-06-13 19:00:01 +00:00