fix(scheduling): remove duplicate mileage text, keep only metrics row
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
kkfluous
2026-04-16 22:50:42 +08:00
parent dbefb90089
commit f6f872d2ce

View File

@@ -97,21 +97,15 @@ export default function SuggestionDetail({ suggestion: s, onClose, onNotifySucce
</span> </span>
</div> </div>
<div className="text-[10px] text-slate-500 space-y-0.5"> <div className="flex items-center gap-2 text-[10px] text-slate-500 flex-wrap">
<div className="flex items-center gap-2 flex-wrap">
<span className="text-slate-400">{v.targetName}</span> <span className="text-slate-400">{v.targetName}</span>
<span className="text-slate-200">|</span>
<span> <b className="text-slate-700">{fmtKm(v.currentYearMileage)}</b></span>
<span> <b className="text-slate-700">{fmtKm(v.yearTarget)}</b> km</span>
<span className="flex items-center gap-0.5"><MapPin size={9} /> {v.region}</span> <span className="flex items-center gap-0.5"><MapPin size={9} /> {v.region}</span>
</div> <span className="text-slate-200">|</span>
<div className="flex items-center gap-2">
<span> <b className="text-slate-700"><Blur>{v.customer || '-'}</Blur></b></span> <span> <b className="text-slate-700"><Blur>{v.customer || '-'}</Blur></b></span>
<span> <b className="text-slate-700">{Math.round(v.customerAvgDaily)}</b> km</span> <span> <b className="text-slate-700">{Math.round(v.customerAvgDaily)}</b> km</span>
</div> </div>
</div>
{/* Metrics row — same style as candidates */} {/* Metrics row */}
<div className="mt-2.5"> <div className="mt-2.5">
<div className="flex text-[10px] bg-white rounded-lg overflow-hidden divide-x divide-slate-200 border border-slate-200"> <div className="flex text-[10px] bg-white rounded-lg overflow-hidden divide-x divide-slate-200 border border-slate-200">
<div className="flex-1 py-1.5 px-2 text-center"> <div className="flex-1 py-1.5 px-2 text-center">