diff --git a/web/src/app/home/plugins/components/plugin-market/plugin-market-card/PluginMarketCardComponent.tsx b/web/src/app/home/plugins/components/plugin-market/plugin-market-card/PluginMarketCardComponent.tsx index 78d40a4f..06d8e7a9 100644 --- a/web/src/app/home/plugins/components/plugin-market/plugin-market-card/PluginMarketCardComponent.tsx +++ b/web/src/app/home/plugins/components/plugin-market/plugin-market-card/PluginMarketCardComponent.tsx @@ -3,7 +3,7 @@ import { useRef, useState, useEffect } from 'react'; import { useTranslation } from 'react-i18next'; import PluginComponentList from '../PluginComponentList'; import { Badge } from '@/components/ui/badge'; -import { Info, Package, Download, ExternalLink } from 'lucide-react'; +import { Info, Package, ExternalLink } from 'lucide-react'; import { Tooltip, TooltipContent, @@ -85,9 +85,24 @@ export default function PluginMarketCardComponent({ }, [cardVO.tags]); const remainingTags = cardVO.tags ? cardVO.tags.length - visibleTags : 0; + const handleInstallClick = () => { + onInstall?.(cardVO); + }; return ( -
+
{ + if (event.key === 'Enter' || event.key === ' ') { + event.preventDefault(); + handleInstallClick(); + } + }} + >
{iconFailed ? ( @@ -120,7 +135,10 @@ export default function PluginMarketCardComponent({ e.preventDefault()} + onClick={(e) => { + e.preventDefault(); + e.stopPropagation(); + }} >
-