diff --git a/package.json b/package.json index 0ac21ecd6..466ac97a5 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "@radix-ui/react-separator": "^1.1.0", "@radix-ui/react-slot": "^1.1.0", "@radix-ui/react-switch": "^1.1.0", - "@radix-ui/react-tooltip": "^1.0.7", + "@radix-ui/react-tooltip": "^1.1.2", "@tabler/icons-react": "^3.14.0", "@types/bcrypt": "^5.0.2", "@types/jsonwebtoken": "^9.0.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6a39d1ca3..fdab6da43 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -63,7 +63,7 @@ importers: specifier: ^1.1.0 version: 1.1.0(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@radix-ui/react-tooltip': - specifier: ^1.0.7 + specifier: ^1.1.2 version: 1.1.2(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@tabler/icons-react': specifier: ^3.14.0 diff --git a/src/components/search/SearchResults.tsx b/src/components/search/SearchResults.tsx index fbef8c12d..851721f00 100644 --- a/src/components/search/SearchResults.tsx +++ b/src/components/search/SearchResults.tsx @@ -51,7 +51,7 @@ export function SearchResults({
{renderSearchResults()}
diff --git a/src/components/search/VideoSearchCard.tsx b/src/components/search/VideoSearchCard.tsx index c95c962b3..e8ab16302 100644 --- a/src/components/search/VideoSearchCard.tsx +++ b/src/components/search/VideoSearchCard.tsx @@ -2,6 +2,12 @@ import { TSearchedVideos } from '@/app/api/search/route'; import { Play } from 'lucide-react'; import Link from 'next/link'; import React from 'react'; +import { + Tooltip, + TooltipContent, + TooltipProvider, + TooltipTrigger, +} from '../ui/tooltip'; interface VideoSearchCardProps { video: TSearchedVideos; @@ -28,13 +34,22 @@ const VideoSearchCard: React.FC = ({ return ( - - {video.title} - + + + + + {video.title} + + + +

{video.title}

+
+
+
); }