From e1669b90b67bf73d4d7c1814cc1dc614e2bfb67f Mon Sep 17 00:00:00 2001 From: chenpei Date: Mon, 17 Aug 2026 21:59:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=B4=A0=E6=9D=90=E5=BA=93=E6=A1=8C?= =?UTF-8?q?=E9=9D=A2=E4=B8=80=E8=A1=8C=E5=9B=9B=E5=8D=A1=EF=BC=8C=E6=95=B0?= =?UTF-8?q?=E5=AD=97=E4=B8=8E=E6=96=87=E5=AD=97=E5=88=86=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/home/FilterPanel.tsx | 42 ++++++++++++++++---------------- components/home/MaterialCard.tsx | 6 ++--- components/home/MaterialGrid.tsx | 4 +-- 3 files changed, 26 insertions(+), 26 deletions(-) diff --git a/components/home/FilterPanel.tsx b/components/home/FilterPanel.tsx index 7ddd5f5..bfaf53c 100644 --- a/components/home/FilterPanel.tsx +++ b/components/home/FilterPanel.tsx @@ -90,11 +90,11 @@ function FilterPanel(props: FilterPanelProps) { const activeFilterCount = [selectedMaterialType, selectedCategory, selectedScene, selectedPlatform, selectedProductCategory, selectedMonth].filter(Boolean).length const tabBase = 'relative shrink-0 whitespace-nowrap pb-3 text-[15px] tracking-[-0.02em] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#1a1c1d]/70 focus-visible:ring-offset-2 rounded-sm' const tabActive = 'text-[#1a1c1d]' - const tabInactive = 'text-[#86898e] hover:text-[#1a1c1d]' + const tabInactive = 'text-[#6b7075] hover:text-[#1a1c1d]' const chipBase = 'text-[14px] tracking-[-0.02em] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#1a1c1d]/70 focus-visible:ring-offset-2 rounded-sm' const chipActive = 'text-[#1a1c1d]' - const chipInactive = 'text-[#86898e] hover:text-[#1a1c1d]' - const countMuted = (active: boolean) => (active ? 'text-[#6b7075]' : 'text-[#86898e]') + const chipInactive = 'text-[#6b7075] hover:text-[#1a1c1d]' + const countClass = 'font-en text-[12px] font-medium tabular-nums tracking-[0.08em] text-[#86898e]' const countText = (value: number) => (facetsLoading ? '…' : value.toLocaleString('zh-CN')) const rankedTypes = useMemo(() => { const hasCounts = materialTypes.some((type) => (type.count || 0) > 0) @@ -212,7 +212,7 @@ function FilterPanel(props: FilterPanelProps) { const renderTypeTab = (label: string, count: number, active: boolean, onClick: () => void) => ( ) @@ -241,7 +241,7 @@ function FilterPanel(props: FilterPanelProps) { className={`${tabBase} ${moreActive || moreOpen ? tabActive : tabInactive}`} > 更多 - {overflowTypes.length} + {overflowTypes.length} {(moreActive || moreOpen) &&