From 6c19ee6f50354eb02206c016976575090a5baabb Mon Sep 17 00:00:00 2001 From: Danilo Leal Date: Sat, 28 Dec 2024 14:55:47 -0300 Subject: [PATCH] Show focused border styles only when it's folded --- crates/editor/src/element.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/editor/src/element.rs b/crates/editor/src/element.rs index 3677ef75a7b5b..1bda9908403b7 100644 --- a/crates/editor/src/element.rs +++ b/crates/editor/src/element.rs @@ -2603,7 +2603,7 @@ impl EditorElement { .shadow_md() .border_1() .map(|div| { - let border_color = if is_selected { + let border_color = if is_selected && is_folded { colors.border_focused } else { colors.border