ran cargo fmt
This commit is contained in:
parent
00c641355c
commit
28a0cf5f88
2 changed files with 19 additions and 16 deletions
|
@ -2533,9 +2533,9 @@ impl EditorElement {
|
|||
});
|
||||
|
||||
if let Some(mut element) = maybe_element {
|
||||
let has_mouse_context_menu = self.editor.read_with(cx, |editor, _| {
|
||||
editor.mouse_context_menu.is_some()
|
||||
});
|
||||
let has_mouse_context_menu = self
|
||||
.editor
|
||||
.read_with(cx, |editor, _| editor.mouse_context_menu.is_some());
|
||||
|
||||
if !has_mouse_context_menu {
|
||||
let size = element.layout_as_root(AvailableSpace::min_size(), window, cx);
|
||||
|
|
|
@ -102,20 +102,23 @@ impl BlameRenderer for GitBlameRenderer {
|
|||
)
|
||||
}
|
||||
})
|
||||
.when(!editor_for_tooltip.read(cx).has_mouse_context_menu(), |el| {
|
||||
el.hoverable_tooltip(move |_window, cx| {
|
||||
cx.new(|cx| {
|
||||
CommitTooltip::blame_entry(
|
||||
&blame_entry,
|
||||
details.clone(),
|
||||
repository.clone(),
|
||||
workspace.clone(),
|
||||
cx,
|
||||
)
|
||||
.when(
|
||||
!editor_for_tooltip.read(cx).has_mouse_context_menu(),
|
||||
|el| {
|
||||
el.hoverable_tooltip(move |_window, cx| {
|
||||
cx.new(|cx| {
|
||||
CommitTooltip::blame_entry(
|
||||
&blame_entry,
|
||||
details.clone(),
|
||||
repository.clone(),
|
||||
workspace.clone(),
|
||||
cx,
|
||||
)
|
||||
})
|
||||
.into()
|
||||
})
|
||||
.into()
|
||||
})
|
||||
})
|
||||
},
|
||||
)
|
||||
.into_any(),
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue