Files
oak-gpui/crates
326fe05b33 Resizable columns (#34794)
This PR adds resizable columns to the keymap editor and the ability to
double-click on a resizable column to set a column back to its default
size.

The table uses a column's width to calculate what position it should be
laid out at. So `column[i]` x position is calculated by the summation of
`column[..i]`. When resizing `column[i]`, `column[i+1]`’s size is
adjusted to keep all columns’ relative positions the same. If
`column[i+1]` is at its minimum size, we keep seeking to the right to
find a column with space left to take.

An improvement to resizing behavior and double-clicking could be made by
checking both column ranges `0..i-1` and `i+1..COLS`, since only one
range of columns is checked for resize capacity.

Release Notes:

- N/A

---------

Co-authored-by: Anthony <anthony@zed.dev>
Co-authored-by: Remco Smits <djsmits12@gmail.com>
2025-07-23 15:44:45 +00:00
..
2025-07-21 11:11:37 -03:00
2025-07-21 13:44:51 +02:00
2025-07-19 01:27:54 +00:00
2025-06-17 20:26:27 +00:00
2025-07-23 12:17:23 +02:00
2025-07-17 15:58:54 +00:00
2025-07-17 14:25:55 +00:00
2025-07-08 14:34:57 +00:00
2025-07-09 16:02:31 +00:00
2025-07-12 11:48:19 -03:00
2025-07-23 15:44:45 +00:00
2025-07-23 15:44:45 +00:00