ZIm/crates/ui/src/components
Danilo Leal ad51df7644
Improve multibuffer excerpt affordances (#22167)
Changes:
- [x] Increase expand affordance surface area
- [x] Ensure expand buttons have tooltips with keybindings
- [x] Make line numbers clickable to jump you to location (only in
multibuffers)
- [x] Hide the "Jump To File" element in not-focused excerpts

Before merging it:

- [x] Fix off-by-one header focus styles glitch

Improvements to consider for follow-up PRs:

1. Experiment with increasing the width of the clickable surface area
for line numbers
2. Don't show (or disable) the "expand excerpt" button when at the top
or bottom edge of the file
3. Once you jump to location, centralize the cursor scroll position

Release Notes:

- Improved multibuffer's "expand excerpt" affordance
- Fixed "jump to file/location" and "expand excerpt" keybinding display
- Made clicking on line numbers in multibuffers jump you to cursor
location in file

---------

Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
Co-authored-by: Agus Zubiaga <hi@aguz.me>
Co-authored-by: Kirill Bulatov <kirill@zed.dev>
Co-authored-by: Agus Zubiaga <agus@zed.dev>
2024-12-30 12:23:11 +00:00
..
avatar ui: Fix avatar indicators getting cut off (#18821) 2024-10-07 12:53:11 -04:00
button Toggle & Switch (#21979) 2024-12-13 14:23:02 -05:00
label ui: Add text_ellipsis method to Labels (#22118) 2024-12-16 18:43:01 -05:00
list ui: Round hover styles for ListItems with outlined set (#22120) 2024-12-16 18:43:16 -05:00
stories Add Corner to geometry and make names of corner methods consistent (#22119) 2024-12-16 22:57:15 -07:00
avatar.rs chore: Revert changes made to ui crate structure (#17516) 2024-09-06 21:38:56 +02:00
button.rs chore: Another round of style lints fixes (#17519) 2024-09-07 02:36:55 +02:00
content_group.rs Add placeholder git panel (#21894) 2024-12-11 22:13:52 -05:00
context_menu.rs Toggle & Switch (#21979) 2024-12-13 14:23:02 -05:00
disclosure.rs Toggle & Switch (#21979) 2024-12-13 14:23:02 -05:00
divider.rs Add placeholder git panel (#21894) 2024-12-11 22:13:52 -05:00
dropdown_menu.rs Add Corner to geometry and make names of corner methods consistent (#22119) 2024-12-16 22:57:15 -07:00
facepile.rs Add placeholder git panel (#21894) 2024-12-11 22:13:52 -05:00
icon.rs assistant2: Add temporary icon for the status bar item (#22156) 2024-12-17 16:57:47 -05:00
image.rs ui crate docs & spring cleaning (#18768) 2024-10-05 23:28:34 -04:00
indent_guides.rs outline panel: Add indent guides (#19719) 2024-10-28 09:54:18 +01:00
indicator.rs Add placeholder git panel (#21894) 2024-12-11 22:13:52 -05:00
keybinding.rs Fix file finder menu actions (#21087) 2024-11-23 02:21:19 +02:00
label.rs chore: Revert changes made to ui crate structure (#17516) 2024-09-06 21:38:56 +02:00
list.rs chore: Revert changes made to ui crate structure (#17516) 2024-09-06 21:38:56 +02:00
modal.rs Refactor Spacing into DynamicSpacing using proc macro (#20504) 2024-11-11 11:08:55 -05:00
navigable.rs Cleanups preparing for WindowContext refactor (#22475) 2024-12-28 21:36:14 +00:00
numeric_stepper.rs ui crate docs & spring cleaning (#18768) 2024-10-05 23:28:34 -04:00
popover.rs Improve code context menu layout position esp visual stability (#22102) 2024-12-16 23:17:36 -07:00
popover_menu.rs Add Corner to geometry and make names of corner methods consistent (#22119) 2024-12-16 22:57:15 -07:00
radio.rs Refactor Spacing into DynamicSpacing using proc macro (#20504) 2024-11-11 11:08:55 -05:00
right_click_menu.rs Add Corner to geometry and make names of corner methods consistent (#22119) 2024-12-16 22:57:15 -07:00
scrollbar.rs Add Corner to geometry and make names of corner methods consistent (#22119) 2024-12-16 22:57:15 -07:00
settings_container.rs ui crate docs & spring cleaning (#18768) 2024-10-05 23:28:34 -04:00
settings_group.rs ui crate docs & spring cleaning (#18768) 2024-10-05 23:28:34 -04:00
stack.rs ui crate docs & spring cleaning (#18768) 2024-10-05 23:28:34 -04:00
stories.rs Add preview for Checkbox with Label (#20448) 2024-11-08 22:53:15 -05:00
tab.rs Toggle & Switch (#21979) 2024-12-13 14:23:02 -05:00
tab_bar.rs Dynamic tab bar height (#19076) 2024-11-16 13:48:25 +02:00
table.rs Add placeholder git panel (#21894) 2024-12-11 22:13:52 -05:00
toggle.rs Add the SwitchWithLabel component (#22314) 2024-12-20 23:44:47 +00:00
tool_strip.rs Remove usage of use gpui::* (#22310) 2024-12-20 22:52:11 +00:00
tooltip.rs Improve multibuffer excerpt affordances (#22167) 2024-12-30 12:23:11 +00:00