diff --git a/crates/ui2/src/components/button/button_like.rs b/crates/ui2/src/components/button/button_like.rs index 1a33eb2845eef9e767181bb2cc5f65ba7eb8957f..74dfdc45d896336cf256c78acad55374bec037e9 100644 --- a/crates/ui2/src/components/button/button_like.rs +++ b/crates/ui2/src/components/button/button_like.rs @@ -342,7 +342,10 @@ impl RenderOnce for ButtonLike { .when_some(self.width, |this, width| this.w(width)) .rounded_md() .gap_1() - .px_1() + .map(|this| match self.size { + ButtonSize::Default | ButtonSize::Compact => this.px_1(), + ButtonSize::None => this, + }) .bg(self.style.enabled(cx).background) .when(!self.disabled, |this| { this.cursor_pointer() diff --git a/crates/workspace2/src/pane.rs b/crates/workspace2/src/pane.rs index f28759a7337c237aaa7958b1cdb18697882ef501..3b1c00994fa01a98d6ce3c3866515195e0d94aba 100644 --- a/crates/workspace2/src/pane.rs +++ b/crates/workspace2/src/pane.rs @@ -1481,7 +1481,6 @@ impl Pane { }) .start_slot::(indicator) .end_slot( - // TODO: Fix button size IconButton::new("close tab", Icon::Close) .icon_color(Color::Muted) .size(ButtonSize::None)