Diagnostics pane was not focusable with the mouse
This commit is contained in:
parent
9e46b17149
commit
6f4b6eec5b
1 changed files with 4 additions and 3 deletions
|
@ -33,7 +33,7 @@ use theme::ThemeSettings;
|
|||
use util::TryFutureExt;
|
||||
use workspace::{
|
||||
item::{BreadcrumbText, Item, ItemEvent, ItemHandle},
|
||||
ItemNavHistory, Pane, ToolbarItemLocation, Workspace,
|
||||
ItemNavHistory, Pane, ToolbarItemLocation, Workspace, PaneBackdrop,
|
||||
};
|
||||
|
||||
actions!(diagnostics, [Deploy]);
|
||||
|
@ -90,11 +90,12 @@ impl View for ProjectDiagnosticsEditor {
|
|||
fn render(&mut self, cx: &mut ViewContext<Self>) -> AnyElement<Self> {
|
||||
if self.path_states.is_empty() {
|
||||
let theme = &theme::current(cx).project_diagnostics;
|
||||
Label::new("No problems in workspace", theme.empty_message.clone())
|
||||
PaneBackdrop::new(cx.view_id(), Label::new("No problems in workspace", theme.empty_message.clone())
|
||||
.aligned()
|
||||
.contained()
|
||||
.with_style(theme.container)
|
||||
.into_any()
|
||||
.into_any()).into_any()
|
||||
|
||||
} else {
|
||||
ChildView::new(&self.editor, cx).into_any()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue