fmt
This commit is contained in:
parent
6e964acd92
commit
256949bee0
1 changed files with 31 additions and 36 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue