From 715487fda7cf85edffe89a010bc6732d59e648bc Mon Sep 17 00:00:00 2001 From: wxj Date: Tue, 30 Jun 2026 10:04:32 +0800 Subject: [PATCH] =?UTF-8?q?Token=20=E4=BD=BF=E7=94=A8=E8=B6=8B=E5=8A=BF?= =?UTF-8?q?=E6=97=A5=E6=9C=9F=E6=A0=87=E7=AD=BE=E5=8F=AF=E8=AF=BB=E6=80=A7?= =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E9=9D=9E=E5=B3=B0=E5=80=BC=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E9=A2=9C=E8=89=B2=E4=BB=8E=E6=B5=85=E7=81=B0=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E4=B8=AD=E7=81=B0=EF=BC=8C=E7=A1=AE=E4=BF=9D=E5=8F=AF?= =?UTF-8?q?=E8=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/dashboard/BentoTrend.jsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/web/src/components/dashboard/BentoTrend.jsx b/web/src/components/dashboard/BentoTrend.jsx index 78e6b1e..2c23088 100644 --- a/web/src/components/dashboard/BentoTrend.jsx +++ b/web/src/components/dashboard/BentoTrend.jsx @@ -77,19 +77,23 @@ const BentoTrend = ({
- {dailyStats.map((d, i) => ( + {dailyStats.map((d, i) => { + const isPeak = d.count === peak && peak > 0; + return ( 0 + className={`w-8 text-center text-xs ${ + isPeak ? 'font-semibold text-slate-900 dark:text-white' - : 'text-slate-300 dark:text-white/30' + : 'text-slate-500 dark:text-white/50' }`} title={`${d.date.getMonth() + 1}月${d.date.getDate()}日 ${d.count} 次`} > {formatMD(d.date)} - ))} + ); + })} +
峰值{' '}