mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-30 22:34:13 +00:00
Fix click behaviour of vcs/project dropdowns
This commit is contained in:
parent
14eab4e94f
commit
e9b34de7c8
1 changed files with 6 additions and 7 deletions
|
@ -237,9 +237,10 @@ impl CollabTitlebarItem {
|
||||||
.into_any_named("title-project-name")
|
.into_any_named("title-project-name")
|
||||||
})
|
})
|
||||||
.with_cursor_style(CursorStyle::PointingHand)
|
.with_cursor_style(CursorStyle::PointingHand)
|
||||||
.on_click(MouseButton::Left, move |_, this, cx| {
|
.on_down(MouseButton::Left, move |_, this, cx| {
|
||||||
this.toggle_project_menu(&Default::default(), cx)
|
this.toggle_project_menu(&Default::default(), cx)
|
||||||
})
|
})
|
||||||
|
.on_click(MouseButton::Left, move |_, _, _| {})
|
||||||
.contained()
|
.contained()
|
||||||
.with_style(project_style.container),
|
.with_style(project_style.container),
|
||||||
)
|
)
|
||||||
|
@ -267,12 +268,10 @@ impl CollabTitlebarItem {
|
||||||
.into_any_named("title-project-branch")
|
.into_any_named("title-project-branch")
|
||||||
})
|
})
|
||||||
.with_cursor_style(CursorStyle::PointingHand)
|
.with_cursor_style(CursorStyle::PointingHand)
|
||||||
.on_click(
|
.on_down(MouseButton::Left, move |_, this, cx| {
|
||||||
MouseButton::Left,
|
this.toggle_vcs_menu(&Default::default(), cx)
|
||||||
move |_, this, cx| {
|
})
|
||||||
this.toggle_vcs_menu(&Default::default(), cx)
|
.on_click(MouseButton::Left, move |_, _, _| {}),
|
||||||
},
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
.with_children(self.render_branches_popover_host(&theme.titlebar, cx)),
|
.with_children(self.render_branches_popover_host(&theme.titlebar, cx)),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue