From 0341b697cef5953b017f14fa33356b2f53dffe20 Mon Sep 17 00:00:00 2001
From: arookieofc <2128194521@qq.com>
Date: Fri, 6 Nov 2026 19:25:15 +0800
Subject: [PATCH] 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
---
src/ui/Menu.tsx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/ui/Menu.tsx b/src/ui/Menu.tsx
index 0b083979..3dcb4673 100644
--- a/src/ui/Menu.tsx
+++ b/src/ui/Menu.tsx
@@ -273,7 +273,9 @@ export function MenuList({ items, onDone, onCloseLevel, autoFocusFirst = true, .
{r.checked ? : r.icon ? : null}
- {r.label}
+
+ {r.label}
+
{r.shortcut && {r.shortcut}}
{hasSub && }