Fine-tune terminal tab bar actions spacing (#21391)
Just quickly reducing the spacing between the terminal tab bar actions so they're tighter and matching other similar components. | Before | After | |--------|--------| | <img width="800" alt="Screenshot 2024-12-01 at 19 20 50" src="https://github.com/user-attachments/assets/938336df-9ce1-42d3-8f3d-9c26b8e88453"> | <img width="800" alt="Screenshot 2024-12-01 at 19 18 19" src="https://github.com/user-attachments/assets/0a2b5915-f37c-4b8e-af2c-b8018c4750ab"> | Release Notes: - N/A
This commit is contained in:
parent
380679fcc2
commit
740ba7817b
1 changed files with 5 additions and 5 deletions
|
@ -26,8 +26,8 @@ use terminal::{
|
||||||
Terminal,
|
Terminal,
|
||||||
};
|
};
|
||||||
use ui::{
|
use ui::{
|
||||||
div, h_flex, ButtonCommon, Clickable, ContextMenu, FluentBuilder, IconButton, IconSize,
|
prelude::*, ButtonCommon, Clickable, ContextMenu, FluentBuilder, PopoverMenu, Selectable,
|
||||||
InteractiveElement, PopoverMenu, Selectable, Tooltip,
|
Tooltip,
|
||||||
};
|
};
|
||||||
use util::{ResultExt, TryFutureExt};
|
use util::{ResultExt, TryFutureExt};
|
||||||
use workspace::{
|
use workspace::{
|
||||||
|
@ -139,14 +139,13 @@ impl TerminalPanel {
|
||||||
}
|
}
|
||||||
let focus_handle = pane.focus_handle(cx);
|
let focus_handle = pane.focus_handle(cx);
|
||||||
let right_children = h_flex()
|
let right_children = h_flex()
|
||||||
.gap_2()
|
.gap(DynamicSpacing::Base02.rems(cx))
|
||||||
.children(assistant_tab_bar_button.clone())
|
|
||||||
.child(
|
.child(
|
||||||
PopoverMenu::new("terminal-tab-bar-popover-menu")
|
PopoverMenu::new("terminal-tab-bar-popover-menu")
|
||||||
.trigger(
|
.trigger(
|
||||||
IconButton::new("plus", IconName::Plus)
|
IconButton::new("plus", IconName::Plus)
|
||||||
.icon_size(IconSize::Small)
|
.icon_size(IconSize::Small)
|
||||||
.tooltip(|cx| Tooltip::text("New...", cx)),
|
.tooltip(|cx| Tooltip::text("New…", cx)),
|
||||||
)
|
)
|
||||||
.anchor(AnchorCorner::TopRight)
|
.anchor(AnchorCorner::TopRight)
|
||||||
.with_handle(pane.new_item_context_menu_handle.clone())
|
.with_handle(pane.new_item_context_menu_handle.clone())
|
||||||
|
@ -170,6 +169,7 @@ impl TerminalPanel {
|
||||||
Some(menu)
|
Some(menu)
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
.children(assistant_tab_bar_button.clone())
|
||||||
.child(
|
.child(
|
||||||
PopoverMenu::new("terminal-pane-tab-bar-split")
|
PopoverMenu::new("terminal-pane-tab-bar-split")
|
||||||
.trigger(
|
.trigger(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue