From 274b9edc322a34132c6f2ff0cb0e09f960a94b91 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Fri, 18 Oct 2024 14:13:15 +0800 Subject: [PATCH] table: Fix selected row top, bottom border detail. --- crates/ui/src/table.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/ui/src/table.rs b/crates/ui/src/table.rs index 6a386fe0..f8152405 100644 --- a/crates/ui/src/table.rs +++ b/crates/ui/src/table.rs @@ -1020,9 +1020,9 @@ where this.when( is_selected && self.selection_state == SelectionState::Row, |this| { - this.child( + this.border_color(gpui::transparent_white()).child( div() - .top(px(-1.)) + .top(if row_ix == 0 { px(0.) } else { px(-1.) }) .left(px(0.)) .right(px(0.)) .bottom_0() @@ -1036,9 +1036,9 @@ where }) // Row right click row style .when(self.right_clicked_row == Some(row_ix), |this| { - this.child( + this.border_color(gpui::transparent_white()).child( div() - .top(px(-1.)) + .top(if row_ix == 0 { px(0.) } else { px(-1.) }) .left(px(0.)) .right(px(0.)) .bottom_0()