diff --git a/src/components/VideoContentChapters.tsx b/src/components/VideoContentChapters.tsx index e7a2818a..f224f510 100644 --- a/src/components/VideoContentChapters.tsx +++ b/src/components/VideoContentChapters.tsx @@ -3,6 +3,7 @@ import { Segment, formatTime } from '@/lib/utils'; import { useEffect, useState } from 'react'; import { motion } from 'framer-motion'; import videojs from 'video.js'; +import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './ui/tooltip'; const chaptersVariants = { open: { @@ -66,20 +67,29 @@ const VideoContentChapters = ({
{(segments as Segment[])?.map(({ start, end, title }, index) => { return ( -
-
= start && currentTime < end ? 'bg-blue-500/10' : 'bg-primary/5'}`} - onClick={() => { - player.currentTime(start); - player.play(); - }} - > -

{title}

- - {formatTime(start)} - -
-
+ + +
+
= start && currentTime < end ? 'bg-blue-500/10' : 'bg-primary/5'}`} + onClick={() => { + player.currentTime(start); + player.play(); + }} + > + +

{title}

+
+ +

{title}

+
+ + {formatTime(start)} + +
+
+
+
); })}