mirror of
https://github.com/makeplane/plane.git
synced 2026-02-24 12:11:39 +01:00
chore: tooltip enhancements
This commit is contained in:
@@ -61,8 +61,16 @@ export function Tooltip(props: ITooltipProps) {
|
||||
align={finalAlign}
|
||||
render={
|
||||
<BaseTooltip.Popup>
|
||||
{tooltipHeading && <div className="text-caption-md-medium text-primary">{tooltipHeading}</div>}
|
||||
{tooltipContent && <div className="mt-1 text-caption-sm-regular text-secondary">{tooltipContent}</div>}
|
||||
{tooltipHeading && <p className="text-caption-md-medium text-primary">{tooltipHeading}</p>}
|
||||
{tooltipContent && (
|
||||
<p
|
||||
className={cn("text-caption-sm-regular text-secondary", {
|
||||
"mt-1": tooltipHeading && tooltipHeading !== "",
|
||||
})}
|
||||
>
|
||||
{tooltipContent}
|
||||
</p>
|
||||
)}
|
||||
</BaseTooltip.Popup>
|
||||
}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user