Skip to content

Commit 9e1d7b2

Browse files
authored
Update AIChat context card open delay (#3834)
1 parent b49caaf commit 9e1d7b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/gitbook/src/components/AIChat/AIChatInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export function AIChatInput(props: {
108108
</div>
109109
) : null}
110110
<div className="absolute inset-x-0 bottom-0 flex items-center gap-2 px-2 py-2">
111-
<HoverCardRoot>
111+
<HoverCardRoot openDelay={500}>
112112
<HoverCard
113113
className="max-w-xs bg-tint p-2 text-sm text-tint"
114114
arrow={{ className: 'fill-tint-3' }}

packages/gitbook/src/components/primitives/HoverCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function HoverCard(
2828
<RadixHoverCard.Portal>
2929
<RadixHoverCard.Content
3030
side={props.side ?? 'top'}
31-
className="z-40 w-screen max-w-md animate-scale-in px-4 data-[state='closed']:animate-scale-out sm:w-auto"
31+
className="pointer-events-none z-40 w-screen max-w-md animate-scale-in px-4 data-[state='closed']:animate-scale-out sm:w-auto"
3232
>
3333
<div
3434
className={tcls(

0 commit comments

Comments
 (0)