mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2025-12-06 19:46:44 +03:00
feat: add openDelay prop to HoverCard in GitHubConfigForm and OrganizationStrategy components
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user