mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-06 16:08:05 +00:00
fix(menu): show native tooltip for truncated item labels
Menu labels (e.g. Open Recent paths) overflow with ellipsis but offered no way to read the full text. Give the label span a title attribute so the browser shows the whole path on hover. Fixes #1770
This commit is contained in:
+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>
|
||||
|
||||
Reference in New Issue
Block a user