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

Цей коміт міститься в:
arookieofc authored and GitHub committed 2026-11-06 20:50:38 +08:00
1 джерело a80ed81ca8
коміт 84e1863ebf
1 file changed
+3 -1
+3 -1
Переглянути файл
@@ -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>