keymap_ui: Hover tooltip for action documentation (#33862)

Closes #ISSUE

Show the documentation for an action when hovered. As a bonus, also show
the humanized command palette name!

Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
Ben Kunkle 2025-07-03 11:35:20 -05:00 committed by GitHub
parent 34322ef1cd
commit 4e6b7ee3ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 44 additions and 7 deletions

View file

@ -12,8 +12,7 @@ use ui::{
ComponentScope, Div, ElementId, FixedWidth as _, FluentBuilder as _, Indicator,
InteractiveElement as _, IntoElement, ParentElement, Pixels, RegisterComponent, RenderOnce,
Scrollbar, ScrollbarState, StatefulInteractiveElement as _, Styled, StyledExt as _,
StyledTypography, Tooltip, Window, div, example_group_with_title, h_flex, px, single_example,
v_flex,
StyledTypography, Window, div, example_group_with_title, h_flex, px, single_example, v_flex,
};
struct UniformListData<const COLS: usize> {
@ -474,7 +473,6 @@ pub fn render_row<const COLS: usize>(
let row = div().w_full().child(
h_flex()
.id("table_row")
.tooltip(Tooltip::text("Hit enter to edit"))
.w_full()
.justify_between()
.px_1p5()