diff --git a/crates/project_panel/src/project_panel.rs b/crates/project_panel/src/project_panel.rs index 2714e70c6e..1f4fd50f41 100644 --- a/crates/project_panel/src/project_panel.rs +++ b/crates/project_panel/src/project_panel.rs @@ -3224,7 +3224,9 @@ impl ProjectPanel { .border_1() .border_r_2() .border_color(border_color) - .hover(|style| style.bg(bg_hover_color)) + .when(!is_marked && !is_active, |div| { + div.hover(|style| style.bg(bg_hover_color)) + }) .when(is_local, |div| { div.on_drag_move::(cx.listener( move |this, event: &DragMoveEvent, cx| { @@ -3897,6 +3899,11 @@ impl Render for ProjectPanel { this.hide_scrollbar(cx); } })) + .on_click(cx.listener(|this, _event, cx| { + cx.stop_propagation(); + this.selection = None; + this.marked_entries.clear(); + })) .key_context(self.dispatch_context(cx)) .on_action(cx.listener(Self::select_next)) .on_action(cx.listener(Self::select_prev))