forked from github/plane
fix: date select tooltip fix (#2740)
This commit is contained in:
parent
c291ff05ee
commit
162faf8339
@ -46,24 +46,25 @@ export const IssuePropertyDate: React.FC<IIssuePropertyDate> = observer((props)
|
|||||||
disabled ? "cursor-not-allowed text-custom-text-200" : "cursor-pointer hover:bg-custom-background-80"
|
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">
|
||||||
<div className="overflow-hidden flex justify-center items-center gap-2">
|
<Calendar className="h-3 w-3" strokeWidth={2} />
|
||||||
<Calendar className="h-3 w-3" strokeWidth={2} />
|
{value && (
|
||||||
{value && (
|
<>
|
||||||
<>
|
<Tooltip tooltipHeading={placeHolder} tooltipContent={value ?? "None"}>
|
||||||
<div className="text-xs">{value}</div>
|
<div className="text-xs">{value}</div>
|
||||||
<div
|
</Tooltip>
|
||||||
className="flex-shrink-0 flex justify-center items-center"
|
|
||||||
onClick={() => {
|
<div
|
||||||
if (onChange) onChange(null);
|
className="flex-shrink-0 flex justify-center items-center"
|
||||||
}}
|
onClick={() => {
|
||||||
>
|
if (onChange) onChange(null);
|
||||||
<X className="h-2.5 w-2.5" strokeWidth={2} />
|
}}
|
||||||
</div>
|
>
|
||||||
</>
|
<X className="h-2.5 w-2.5" strokeWidth={2} />
|
||||||
)}
|
</div>
|
||||||
</div>
|
</>
|
||||||
</Tooltip>
|
)}
|
||||||
|
</div>
|
||||||
</Popover.Button>
|
</Popover.Button>
|
||||||
|
|
||||||
<div className={`${open ? "fixed z-20 top-0 left-0 h-full w-full cursor-auto" : ""}`}>
|
<div className={`${open ? "fixed z-20 top-0 left-0 h-full w-full cursor-auto" : ""}`}>
|
||||||
|
Loading…
Reference in New Issue
Block a user