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)} - ))} + ); + })} +
峰值{' '}