ZIm/crates/repl/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
..
components chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
kernels python: Re-land usage of source file path in toolchain picker (#31893) 2025-06-02 16:29:06 +00:00
notebook Fix clicking in to agent message editor and tighten up vertical spacing (#32765) 2025-06-15 18:45:44 +00:00
outputs Improve handling of large output in embedded terminals (#32416) 2025-06-09 18:11:31 -03:00
components.rs Show kernel options in a picker (#20274) 2024-11-07 17:59:53 -08:00
jupyter_settings.rs VSCode Settings import (#29018) 2025-04-23 20:54:09 +00:00
notebook.rs Initial Notebook UI structure (#19756) 2024-10-29 11:30:07 -07:00
outputs.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
repl.rs chore: Bump Rust edition to 2024 (#27800) 2025-03-31 20:55:27 +02:00
repl_editor.rs Add kernel detection for language support of runnable markdown cells (#29664) 2025-05-21 20:23:05 -07:00
repl_sessions_ui.rs Add searchable global tab switcher (#28047) 2025-04-28 09:21:27 +00:00
repl_store.rs Add kernel detection for language support of runnable markdown cells (#29664) 2025-05-21 20:23:05 -07:00
session.rs Remove block_mouse_down in favor of stop_mouse_events_except_scroll (#30401) 2025-05-29 22:07:34 +00:00