mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 13:35:24 +02:00
fix: logic to show BSR improvements (rank drops) in green
This commit is contained in:
@@ -600,7 +600,7 @@ const ExperimentDetailView: React.FC<{
|
||||
<td className={`py-4 text-sm font-bold flex items-center gap-1 ${isGood ? 'text-emerald-400' : 'text-[#f43f5e]'}`}>
|
||||
<div className="flex flex-col">
|
||||
<span className="flex items-center gap-1">
|
||||
<svg className={`w-3.5 h-3.5 ${isGood ? (res.lift_percent >= 0 ? '' : 'rotate-180') : 'rotate-180'}`} fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={3}><path strokeLinecap="round" strokeLinejoin="round" d="M5 15l7-7 7 7" /></svg>
|
||||
<svg className={`w-3.5 h-3.5 ${isPositiveGood ? (res.lift_percent >= 0 ? '' : 'rotate-180') : (res.lift_percent <= 0 ? '' : 'rotate-180')}`} fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={3}><path strokeLinecap="round" strokeLinejoin="round" d="M5 15l7-7 7 7" /></svg>
|
||||
{res.lift_percent >= 0 ? '+' : ''}{res.lift_percent.toFixed(1)}%
|
||||
</span>
|
||||
<span className="text-[10px] text-[#64748b] font-medium mt-0.5 ml-1">
|
||||
|
||||
Reference in New Issue
Block a user