Merge pull request #1797 from a-rookie-of-C-language/fix/open-recent-path-tooltip

fix(menu): show tooltip for truncated labels
This commit is contained in:
arookieofc
2026-11-06 20:31:45 +08:00
committed by GitHub
+3 -1
View File
@@ -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>