mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-09-22 00:02:23 +00:00
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:
@@ -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| {
|
||||
|
||||
@@ -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())
|
||||
}),
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user