diff --git a/crates/ui/src/components/tab.rs b/crates/ui/src/components/tab.rs index d704846a6834e094a6a6aeb5fcf1fda6ea66c8b2..e6823f46b750488d2903265ef0bda4d4862d8a8f 100644 --- a/crates/ui/src/components/tab.rs +++ b/crates/ui/src/components/tab.rs @@ -5,6 +5,9 @@ use smallvec::SmallVec; use crate::prelude::*; +const START_TAB_SLOT_SIZE: Pixels = px(12.); +const END_TAB_SLOT_SIZE: Pixels = px(14.); + /// The position of a [`Tab`] within a list of tabs. #[derive(Debug, PartialEq, Eq, Clone, Copy)] pub enum TabPosition { @@ -123,12 +126,12 @@ impl RenderOnce for Tab { let (start_slot, end_slot) = { let start_slot = h_flex() - .size(px(12.)) // use px over rem from size_3 + .size(START_TAB_SLOT_SIZE) .justify_center() .children(self.start_slot); let end_slot = h_flex() - .size(px(12.)) // use px over rem from size_3 + .size(END_TAB_SLOT_SIZE) .justify_center() .children(self.end_slot); diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rs index a9e7304e47d8a8ee4d7bea2b6571aa4686964a48..0c35752165b433d6f480a15dd5a63bd1de9cfba2 100644 --- a/crates/workspace/src/pane.rs +++ b/crates/workspace/src/pane.rs @@ -2519,7 +2519,7 @@ impl Pane { .shape(IconButtonShape::Square) .icon_color(Color::Muted) .size(ButtonSize::None) - .icon_size(IconSize::XSmall) + .icon_size(IconSize::Small) .on_click(cx.listener(move |pane, _, window, cx| { pane.unpin_tab_at(ix, window, cx); })) @@ -2539,7 +2539,7 @@ impl Pane { .shape(IconButtonShape::Square) .icon_color(Color::Muted) .size(ButtonSize::None) - .icon_size(IconSize::XSmall) + .icon_size(IconSize::Small) .on_click(cx.listener(move |pane, _, window, cx| { pane.close_item_by_id(item_id, SaveIntent::Close, window, cx) .detach_and_log_err(cx);