git_panel: Apply tooltip to checkbox instead of container (#25533)
Closes #ISSUE Small tweak: The tooltip was activating on the icon |Before|After| |---|---| ||| Release Notes: - N/A
This commit is contained in:
parent
45146b6f30
commit
cea06bc0ce
1 changed files with 12 additions and 10 deletions
|
@ -2493,11 +2493,13 @@ impl GitPanel {
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
let start_slot = h_flex()
|
let start_slot =
|
||||||
|
h_flex()
|
||||||
.id(("start-slot", ix))
|
.id(("start-slot", ix))
|
||||||
.gap(DynamicSpacing::Base04.rems(cx))
|
.gap(DynamicSpacing::Base04.rems(cx))
|
||||||
.child(checkbox)
|
.child(checkbox.tooltip(|window, cx| {
|
||||||
.tooltip(|window, cx| Tooltip::for_action("Stage File", &ToggleStaged, window, cx))
|
Tooltip::for_action("Stage File", &ToggleStaged, window, cx)
|
||||||
|
}))
|
||||||
.child(git_status_icon(status, cx))
|
.child(git_status_icon(status, cx))
|
||||||
.on_mouse_down(MouseButton::Left, |_, _, cx| {
|
.on_mouse_down(MouseButton::Left, |_, _, cx| {
|
||||||
// prevent the list item active state triggering when toggling checkbox
|
// prevent the list item active state triggering when toggling checkbox
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue