Skip to content

Commit 6e7342f

Browse files
Fix duplicate and truncated tooltips
The AI removed duplicate tooltips and adjusted styling to prevent text truncation in tooltips.
1 parent c4f55a1 commit 6e7342f

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/components/CustomInfoTooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const CustomInfoTooltip = ({ text }: CustomInfoTooltipProps) => {
1616
onMouseLeave={() => setIsVisible(false)}
1717
/>
1818
{isVisible && (
19-
<div className="absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-3 py-1.5 bg-gray-900 text-white text-xs rounded-md shadow-lg z-50 whitespace-nowrap max-w-xs">
19+
<div className="absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-3 py-1.5 bg-gray-900 text-white text-xs rounded-md shadow-lg z-50 w-48 text-center">
2020
{text}
2121
<div className="absolute top-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-l-4 border-r-4 border-t-4 border-transparent border-t-gray-900"></div>
2222
</div>

src/components/IntegrationStatusIndicator.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ export const IntegrationStatusIndicator = ({ campaign }: IntegrationStatusIndica
109109
{config.icon}
110110
<span className="text-xs font-medium">{config.label}</span>
111111
</Badge>
112-
<CustomInfoTooltip text={config.description} />
113112
<CustomInfoTooltip text="L'indicateur 'Code' vous montre si votre script de tracking RefSpring est correctement installé sur votre site e-commerce et s'il fonctionne." />
114113
</div>
115114
);

0 commit comments

Comments
 (0)