chore: issue tooltip bug fix

This commit is contained in:
Anmol Singh Bhatia 2023-11-07 17:59:38 +05:30
parent 3d5cbaae2a
commit d021d38a98

View File

@ -46,12 +46,14 @@ export const IssuePropertyDate: React.FC<IIssuePropertyDate> = observer((props)
disabled ? "cursor-not-allowed text-custom-text-200" : "cursor-pointer hover:bg-custom-background-80"
}`}
>
<Tooltip tooltipHeading={placeHolder} tooltipContent={value ?? "None"}>
<div className="overflow-hidden flex justify-center items-center gap-2">
<Calendar className="h-3 w-3" strokeWidth={2} />
{value && (
<>
<Tooltip tooltipHeading={placeHolder} tooltipContent={value ?? "None"}>
<div className="text-xs">{value}</div>
</Tooltip>
<div
className="flex-shrink-0 flex justify-center items-center"
onClick={() => {
@ -63,7 +65,6 @@ export const IssuePropertyDate: React.FC<IIssuePropertyDate> = observer((props)
</>
)}
</div>
</Tooltip>
</Popover.Button>
<div className={`${open ? "fixed z-20 top-0 left-0 h-full w-full cursor-auto" : ""}`}>