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:
+4
-1
@@ -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>
|
||||
{' · '}
|
||||
|
||||
Reference in New Issue
Block a user