diff --git a/packages/gitbook/src/components/DocumentView/Annotation/Annotation.tsx b/packages/gitbook/src/components/DocumentView/Annotation/Annotation.tsx index c0300fc01..17fb08718 100644 --- a/packages/gitbook/src/components/DocumentView/Annotation/Annotation.tsx +++ b/packages/gitbook/src/components/DocumentView/Annotation/Annotation.tsx @@ -27,7 +27,7 @@ export function Annotation(props: InlineProps) { ancestorBlocks={[]} context={context} nodes={fragment.nodes} - style={['space-y-4']} + style={['contents']} /> } > diff --git a/packages/gitbook/src/components/DocumentView/Annotation/AnnotationPopover.tsx b/packages/gitbook/src/components/DocumentView/Annotation/AnnotationPopover.tsx index 07b0ebfe8..2c36150e6 100644 --- a/packages/gitbook/src/components/DocumentView/Annotation/AnnotationPopover.tsx +++ b/packages/gitbook/src/components/DocumentView/Annotation/AnnotationPopover.tsx @@ -1,84 +1,30 @@ 'use client'; -import * as Popover from '@radix-ui/react-popover'; import type React from 'react'; -import { tString, useLanguage } from '@/intl/client'; -import { tcls } from '@/lib/tailwind'; +import { Tooltip } from '@/components/primitives'; export function AnnotationPopover(props: { children: React.ReactNode; body: React.ReactNode }) { const { children, body } = props; - const language = useLanguage(); return ( - - - - - - - {body} - - - - - - - - - - - - - - - + + + {children} + + ); } diff --git a/packages/gitbook/src/components/primitives/HoverCard.tsx b/packages/gitbook/src/components/primitives/HoverCard.tsx index f6703ef97..72cd44b73 100644 --- a/packages/gitbook/src/components/primitives/HoverCard.tsx +++ b/packages/gitbook/src/components/primitives/HoverCard.tsx @@ -28,7 +28,7 @@ export function HoverCard(
- + + setClicked(true)} {...triggerProps}> {children} - + setClicked(false)} {...contentProps} > {label} - {arrow && } + {arrow && }