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:
parent
34322ef1cd
commit
4e6b7ee3ea
4 changed files with 44 additions and 7 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue