From e8f0ebc881dd3d686bf2ac8a6deb3611b2a67455 Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Fri, 6 Dec 2024 09:17:48 -0300 Subject: [PATCH] Refine diagnostic icons in tabs (#21637) Follow up to https://github.com/zed-industries/zed/pull/21383 Mostly adjusting the alignment when there are no file icons. Screenshot 2024-12-06 at 08 35 48 Release Notes: - N/A --- assets/icons/triangle.svg | 4 ++-- assets/icons/x.svg | 4 ++-- crates/workspace/src/pane.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/assets/icons/triangle.svg b/assets/icons/triangle.svg index 8c44b91b78d30db2772be37514a34a3ffda6dc46..0ecf071e2458d731a473a23e44e4d2d1ade636f3 100644 --- a/assets/icons/triangle.svg +++ b/assets/icons/triangle.svg @@ -1,3 +1,3 @@ - - + + diff --git a/assets/icons/x.svg b/assets/icons/x.svg index d090cb55bfebb341eaf3f3d7084d8d5264a51409..5d91a9edd997cbb85ee636958d244006f0b955ce 100644 --- a/assets/icons/x.svg +++ b/assets/icons/x.svg @@ -1,3 +1,3 @@ - - + + diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rs index c0a80cc943169e20c7076ede3dcd7b59157c06f8..8264cb2a4a0efb76ae1b87947530c00b1c37cd01 100644 --- a/crates/workspace/src/pane.rs +++ b/crates/workspace/src/pane.rs @@ -2145,7 +2145,7 @@ impl Pane { .child(if let Some(decorated_icon) = decorated_icon { div().child(decorated_icon.into_any_element()) } else if let Some(icon) = icon { - div().child(icon.into_any_element()) + div().mt(px(2.5)).child(icon.into_any_element()) } else { div() })