From a941c7b32ee2211bf012b61ff1ada2a3791ff718 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Wed, 27 Nov 2024 23:00:25 +0800 Subject: [PATCH] panel: Fix toggle button border overlap with first tab. (#446) image --- crates/ui/src/dock/tab_panel.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ui/src/dock/tab_panel.rs b/crates/ui/src/dock/tab_panel.rs index 8a20956d..a5dd599f 100644 --- a/crates/ui/src/dock/tab_panel.rs +++ b/crates/ui/src/dock/tab_panel.rs @@ -534,7 +534,8 @@ impl TabPanel { h_flex() .items_center() .top_0() - .right_0() + // Right -1 for avoid border overlap with the first tab + .right(-px(1.)) .border_r_1() .border_b_1() .h_full()