Skip to content

The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.

fix(menu): show tooltip for truncated labels (#1797) (#1816)

arookieofc84e1863ebf5f
diff --git a/src/ui/Menu.tsx b/src/ui/Menu.tsx
index 0b083979c..3dcb46738 100644
--- a/src/ui/Menu.tsx
+++ b/src/ui/Menu.tsx
@@ -273,7 +273,9 @@ export function MenuList({ items, onDone, onCloseLevel, autoFocusFirst = true, .
<span className={styles.icon} data-menu-icon={!r.checked && r.icon ? "" : undefined}>
{r.checked ? <Icon name="check" size={13} /> : r.icon ? <Icon name={r.icon} size={14} /> : null}
</span>
- <span className={styles.label}>{r.label}</span>
+ <span className={styles.label} title={r.label}>
+ {r.label}
+ </span>
{r.shortcut && <span className={styles.shortcut}>{r.shortcut}</span>}
{hasSub && <Icon name="chevron-right" size={14} className={styles.subArrow} />}
</button>