ZIm/crates/ui/src/components
Kirill Bulatov 6f7f0f30e2
Fix hover tooltips appearing after related element is pressed (#24540)
Closes https://github.com/zed-industries/zed/issues/23894

Reworks all trigger declarations from
`.trigger(element.tooltip(tooltip))` into
`.trigger_with_tooltip(element, tooltip)` , with new API disallowing
simultaneous trigger and tooltip display.

All existing `.trigger(` calls were replaced, except 2 not applicable
(in dock.rs and pane.rs), 15 left as ones without tooltips, and 2
unchanged places in `inline_completion_button.rs`, where


0f7bb2e9fd/crates/inline_completion_button/src/inline_completion_button.rs (L311-L319)

`with_animation` does not allow us to simply use the same approach.

Release Notes:

- Fixed hover tooltips appearing after related element is pressed

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
2025-02-10 00:16:12 +00:00
..
avatar component: Add component and component_preview crates to power UI components (#24456) 2025-02-09 13:25:03 -05:00
button component: Add component and component_preview crates to power UI components (#24456) 2025-02-09 13:25:03 -05:00
icon component: Add component and component_preview crates to power UI components (#24456) 2025-02-09 13:25:03 -05:00
label component: Add component and component_preview crates to power UI components (#24456) 2025-02-09 13:25:03 -05:00
list Revise "Hide/Show Inline Completions" menu (#23808) 2025-01-29 17:45:28 -03:00
stories ui: Remove ToolStrip component (#24529) 2025-02-09 16:07:40 +00: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 component: Add component and component_preview crates to power UI components (#24456) 2025-02-09 13:25:03 -05:00
context_menu.rs edit predictions: Add binding to the prediction toggle (#24468) 2025-02-07 18:01:39 -03:00
disclosure.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
divider.rs Revert "gpui & ui: Use shader for dashed dividers" (#23850) 2025-01-29 19:19:20 +00:00
dropdown_menu.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
facepile.rs component: Add component and component_preview crates to power UI components (#24456) 2025-02-09 13:25:03 -05:00
icon.rs component: Add component and component_preview crates to power UI components (#24456) 2025-02-09 13:25:03 -05:00
image.rs Solve 50+ cargo doc warnings (#24071) 2025-02-01 06:19:29 +00:00
indent_guides.rs Rename model based variable names to entity (#24198) 2025-02-04 10:24:35 -08:00
indicator.rs component: Add component and component_preview crates to power UI components (#24456) 2025-02-09 13:25:03 -05:00
keybinding.rs Introduce KeybindingHint (#24397) 2025-02-06 21:45:03 +00:00
keybinding_hint.rs component: Add component and component_preview crates to power UI components (#24456) 2025-02-09 13:25:03 -05: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 Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
navigable.rs Solve 50+ cargo doc warnings (#24071) 2025-02-01 06:19:29 +00:00
numeric_stepper.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
popover.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
popover_menu.rs Fix hover tooltips appearing after related element is pressed (#24540) 2025-02-10 00:16:12 +00:00
radio.rs component: Add component and component_preview crates to power UI components (#24456) 2025-02-09 13:25:03 -05:00
right_click_menu.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
scrollbar.rs Rename model based variable names to entity (#24198) 2025-02-04 10:24:35 -08:00
settings_container.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
settings_group.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
stack.rs ui crate docs & spring cleaning (#18768) 2024-10-05 23:28:34 -04:00
stories.rs ui: Remove ToolStrip component (#24529) 2025-02-09 16:07:40 +00:00
tab.rs component: Add component and component_preview crates to power UI components (#24456) 2025-02-09 13:25:03 -05:00
tab_bar.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
table.rs component: Add component and component_preview crates to power UI components (#24456) 2025-02-09 13:25:03 -05:00
toggle.rs component: Add component and component_preview crates to power UI components (#24456) 2025-02-09 13:25:03 -05:00
tooltip.rs component: Add component and component_preview crates to power UI components (#24456) 2025-02-09 13:25:03 -05:00