mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2025-12-07 20:16:46 +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
|
||||
</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">
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user