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
</label>
<HoverCard>
<HoverCard openDelay={200}>
<HoverCardTrigger asChild>
<button
type="button"
className="p-0.5 hover:bg-muted rounded-sm transition-colors cursor-help"
>
<span className="inline-flex p-0.5 hover:bg-muted rounded-sm transition-colors cursor-help">
<Info className="h-3.5 w-3.5 text-muted-foreground" />
</button>
</span>
</HoverCardTrigger>
<HoverCardContent side="right" align="start" className="w-80">
<div className="space-y-2">

View File

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