feat: add openDelay prop to HoverCard in GitHubConfigForm and OrganizationStrategy components

This commit is contained in:
Arunavo Ray
2025-06-20 11:00:36 +05:30
parent 83c924566c
commit 80ef19c634
2 changed files with 7 additions and 11 deletions

View File

@@ -130,14 +130,11 @@ export function GitHubConfigForm({
> >
GitHub Token GitHub Token
</label> </label>
<HoverCard> <HoverCard openDelay={200}>
<HoverCardTrigger asChild> <HoverCardTrigger asChild>
<button <span className="inline-flex p-0.5 hover:bg-muted rounded-sm transition-colors cursor-help">
type="button"
className="p-0.5 hover:bg-muted rounded-sm transition-colors cursor-help"
>
<Info className="h-3.5 w-3.5 text-muted-foreground" /> <Info className="h-3.5 w-3.5 text-muted-foreground" />
</button> </span>
</HoverCardTrigger> </HoverCardTrigger>
<HoverCardContent side="right" align="start" className="w-80"> <HoverCardContent side="right" align="start" className="w-80">
<div className="space-y-2"> <div className="space-y-2">

View File

@@ -275,15 +275,14 @@ export const OrganizationStrategy: React.FC<OrganizationStrategyProps> = ({
</p> </p>
</div> </div>
<HoverCard> <HoverCard openDelay={200}>
<HoverCardTrigger asChild> <HoverCardTrigger asChild>
<button <span
type="button" className="inline-flex p-1.5 hover:bg-muted rounded-md transition-colors cursor-help"
className="p-1.5 hover:bg-muted rounded-md transition-colors cursor-help"
onClick={(e) => e.stopPropagation()} onClick={(e) => e.stopPropagation()}
> >
<Info className="h-4 w-4 text-muted-foreground" /> <Info className="h-4 w-4 text-muted-foreground" />
</button> </span>
</HoverCardTrigger> </HoverCardTrigger>
<HoverCardContent side="left" align="center" className="w-[500px]"> <HoverCardContent side="left" align="center" className="w-[500px]">
<div className="space-y-3"> <div className="space-y-3">