Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fine-tune terminal tab bar actions spacing (#21391)
Danilo Leal740ba7817bfa
diff --git a/crates/terminal_view/src/terminal_panel.rs b/crates/terminal_view/src/terminal_panel.rsindex 1799d24c7db..532d5d90400 100644--- a/crates/terminal_view/src/terminal_panel.rs+++ b/crates/terminal_view/src/terminal_panel.rs@@ -26,8 +26,8 @@ use terminal::{Terminal,};use ui::{- div, h_flex, ButtonCommon, Clickable, ContextMenu, FluentBuilder, IconButton, IconSize,- InteractiveElement, PopoverMenu, Selectable, Tooltip,+ prelude::*, ButtonCommon, Clickable, ContextMenu, FluentBuilder, PopoverMenu, Selectable,+ Tooltip,};use util::{ResultExt, TryFutureExt};use workspace::{@@ -139,14 +139,13 @@ impl TerminalPanel {}let focus_handle = pane.focus_handle(cx);let right_children = h_flex()- .gap_2()- .children(assistant_tab_bar_button.clone())+ .gap(DynamicSpacing::Base02.rems(cx)).child(PopoverMenu::new("terminal-tab-bar-popover-menu").trigger(IconButton::new("plus", IconName::Plus).icon_size(IconSize::Small)- .tooltip(|cx| Tooltip::text("New...", cx)),+ .tooltip(|cx| Tooltip::text("New…", cx)),).anchor(AnchorCorner::TopRight).with_handle(pane.new_item_context_menu_handle.clone())@@ -170,6 +169,7 @@ impl TerminalPanel {Some(menu)}),)+ .children(assistant_tab_bar_button.clone()).child(PopoverMenu::new("terminal-pane-tab-bar-split").trigger(