fix(ui): show the collapsed sidebar tooltip on resource menu items

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Andras Bacsai
2026-10-24 23:20:33 +02:00
co-authored by Claude Opus 5.5
parent 1e4431f53d
commit 88070a15d5
+1 -1
View File
@@ -10,7 +10,7 @@
if (!collapsed) return;
const el = $event.target.closest('.menu-item, .menu-subitem');
if (!el) { tooltip.show = false; return; }
const text = el.getAttribute('title') || el.getAttribute('aria-label') || '';
const text = el.getAttribute('title') || el.getAttribute('aria-label') || el.querySelector('.menu-item-label')?.textContent.trim() || '';
if (!text) return;
const rect = el.getBoundingClientRect();
tooltip.text = text;