This commit is contained in:
Nate Butler 2023-08-30 10:56:08 -04:00
parent 6e964acd92
commit 256949bee0

View file

@ -247,14 +247,10 @@ impl CollabTitlebarItem {
); );
if let Some(git_branch) = branch_prepended { if let Some(git_branch) = branch_prepended {
ret = ret.with_child( ret = ret.with_child(
Flex::row() Flex::row().with_child(
.with_child(
Stack::new() Stack::new()
.with_child( .with_child(
MouseEventHandler::new::<ToggleVcsMenu, _>( MouseEventHandler::new::<ToggleVcsMenu, _>(0, cx, |mouse_state, cx| {
0,
cx,
|mouse_state, cx| {
enum BranchPopoverTooltip {} enum BranchPopoverTooltip {}
let style = git_style let style = git_style
.in_state(self.branch_popover.is_some()) .in_state(self.branch_popover.is_some())
@ -273,8 +269,7 @@ impl CollabTitlebarItem {
cx, cx,
) )
.into_any_named("title-project-branch") .into_any_named("title-project-branch")
}, })
)
.with_cursor_style(CursorStyle::PointingHand) .with_cursor_style(CursorStyle::PointingHand)
.on_down(MouseButton::Left, move |_, this, cx| { .on_down(MouseButton::Left, move |_, this, cx| {
this.toggle_vcs_menu(&Default::default(), cx) this.toggle_vcs_menu(&Default::default(), cx)