Feat/wrap nav drawer with overflowing text with tooltip (#16455)

# **feat: Add tooltips for truncated names in navigation components**

### **Summary**

Adds hover tooltips across navigation components so users can view full
names when text is truncated due to limited space.

---

# **Changes Made**

### **Sidebar Navigation**

* Added tooltips to navigation drawer items and menu labels.
* Long workspace or company names now show full text on hover.

### **Top Bar**

* Added tooltip support to the View Picker dropdown header.
* Long view names (e.g., *“AuraML, very very long name”*) now reveal
their full value on hover.

---

# **Implementation**

* Integrated `OverflowingTextWithTooltip` from `twenty-ui/display`.
* Wrapped navigation and view labels with the component.
* Updated layout styles to allow accurate overflow detection.
* Tooltip appears **only** when truncation occurs; short names show no
tooltip.

---

# **User Experience**

Users can hover over any truncated workspace, company, navigation, or
view name to see the complete text—improving clarity, accessibility, and
overall navigation usability.


[https://github.com/user-attachments/assets/97f9ea6c-409c-4ec5-a27c-a7b1c5aa5682](https://github.com/user-attachments/assets/97f9ea6c-409c-4ec5-a27c-a7b1c5aa5682)

---

### **Fixes**

Closes **#16412**

---

---------

Co-authored-by: Devessier <baptiste@devessier.fr>
This commit is contained in:
Abhay
2025-12-10 20:38:44 +05:30
committed by GitHub
parent 0a11add616
commit b17e45f272
2 changed files with 13 additions and 6 deletions
@@ -17,6 +17,7 @@ import {
AppTooltip,
type IconComponent,
Label,
OverflowingTextWithTooltip,
type TablerIconsProps,
TooltipDelay,
TooltipPosition,
@@ -345,7 +346,9 @@ export const NavigationDrawerItem = ({
<StyledLabelParent>
<StyledEllipsisContainer>
<StyledItemLabel>{label}</StyledItemLabel>
<StyledItemLabel>
<OverflowingTextWithTooltip text={label} />
</StyledItemLabel>
{secondaryLabel && (
<StyledItemSecondaryLabel>
{' · '}