From 2cb5b0c1e7048a68e5cbb82f82a139446dd3599c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=A8=E9=9C=96=E9=93=83?= Date: Thu, 28 May 2026 21:25:47 +0800 Subject: [PATCH] feat: replace ToolCard grid with compact icon+name grid on Dashboard - Replace large ToolCard layout with dense grid (3-6 columns responsive) - Each item shows icon + tool name in a compact tile - Hover highlights icon and text with smooth transitions - Remove ToolCard import from Dashboard (component retained for reuse) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/pages/Dashboard/index.tsx | 46 ++++++++++++++++++++++------------- 1 file changed, 29 insertions(+), 17 deletions(-) diff --git a/src/pages/Dashboard/index.tsx b/src/pages/Dashboard/index.tsx index 29220a1..15b8210 100644 --- a/src/pages/Dashboard/index.tsx +++ b/src/pages/Dashboard/index.tsx @@ -1,5 +1,4 @@ import { useRouter } from '@/providers/RouterProvider'; -import ToolCard from '@/pages/Dashboard/ToolCard'; import { getFeatureByKey } from '@/config/features'; import type { PageType } from '@/types/storage'; import { useMemo, useState } from 'react'; @@ -89,26 +88,39 @@ export default function DashboardPage() { )} - {/* 全部工具 */} + {/* 全部工具 — 紧凑 Grid */}

{t('dashboard_allTools')}

-
- {filteredFeatures.map(({ key, feature }) => ( - navigateTo(key as PageType)} - /> - ))} +
+ {filteredFeatures.map(({ key, feature }) => { + const IconComponent = feature!.icon!; + return ( + + ); + })}