fix(chrome): give the last icon-only buttons the tooltips their twins have

Every icon-only control in the chrome names itself on hover — except the
settings close, the two SSH ellipsis menus, the switcher row menu, and
the tab close in both the strip and the sidebar. Same glyphs, same jobs,
same words as the buttons beside them.
This commit is contained in:
l0ng-ai
2026-08-08 08:35:50 +07:00
parent a4f6fdc655
commit e17bebb7e2
4 changed files with 6 additions and 0 deletions
+3
View File
@@ -977,6 +977,7 @@ impl Tty7App {
.w(px(TILE_SIZE))
.h(px(TILE_SIZE))
.rounded_lg()
.tooltip(t(L10nKey::Close))
.on_click(cx.listener(|this, _, window, cx| {
this.close_settings_checked(window, cx)
})),
@@ -1710,6 +1711,7 @@ impl Tty7App {
.icon(Icon::empty().path("stock/icons/ellipsis.svg"))
.ghost()
.small()
.tooltip(t(L10nKey::TabTooltipMore))
.dropdown_menu_with_anchor(
gpui::Anchor::TopRight,
move |menu, _window, _cx| {
@@ -2001,6 +2003,7 @@ impl Tty7App {
.icon(Icon::empty().path("stock/icons/ellipsis.svg"))
.ghost()
.small()
.tooltip(t(L10nKey::TabTooltipMore))
.dropdown_menu_with_anchor(
gpui::Anchor::TopRight,
move |menu, _window, cx| {
+1
View File
@@ -1740,6 +1740,7 @@ impl Tty7App {
.ghost()
.xsmall(),
)
.tooltip(t(L10nKey::TabTooltipMore))
.dropdown_menu(move |menu, _window, _cx| {
row_menu(menu, &menu_ref, app.clone())
}),
+1
View File
@@ -370,6 +370,7 @@ impl Tty7App {
.ghost()
.xsmall(),
)
.tooltip(t(L10nKey::TabContextCloseTab))
.on_click(
cx.listener(move |this, _, window, cx| {
this.close_tab(i, window, cx);
+1
View File
@@ -1043,6 +1043,7 @@ impl Tty7App {
.ghost()
.xsmall(),
)
.tooltip(t(L10nKey::TabContextCloseTab))
.on_click(cx.listener(
move |this, _, window, cx| {
this.close_tab(i, window, cx);