Improve milestone progress track contrast

Use clearer neutral track colors for client progress bars and milestone timelines in light and dark themes.
This commit is contained in:
Ichsan Kurniawan
2026-10-16 12:12:08 +07:00
parent 38f21de78a
commit f2e9136e47
3 changed files with 3 additions and 3 deletions
@@ -202,7 +202,7 @@ export default function ClientGrid({ clients, onEdit, onDelete }: ClientGridProp
<span className={cn("w-1.5 h-1.5 rounded-full shrink-0", stage.colorDot)} />
<span className="text-muted-foreground text-[10px] truncate">{stage.name}</span>
</div>
<div className="flex-1 bg-muted dark:bg-zinc-800 rounded-full h-1.5 overflow-hidden">
<div className="flex-1 bg-zinc-200/70 dark:bg-zinc-700/50 rounded-full h-1.5 overflow-hidden">
<div
className={cn("h-full rounded-full transition-all duration-500", stage.colorBar)}
style={{ width: `${barPercent}%` }}
@@ -187,7 +187,7 @@ export default function ClientList({ clients, onEdit, onDelete }: ClientListProp
</div>
{/* Progress Bar Container */}
<div className="flex-1 max-w-50 sm:max-w-60 bg-muted dark:bg-zinc-800 rounded-full h-2 overflow-hidden shrink-0">
<div className="flex-1 max-w-50 sm:max-w-60 bg-zinc-200/70 dark:bg-zinc-700/50 rounded-full h-2 overflow-hidden shrink-0">
<div
className={cn("h-full rounded-full transition-all duration-500", stage.colorBar)}
style={{ width: `${barPercent}%` }}
@@ -152,7 +152,7 @@ export default function ClientMilestoneTimeline({ client, variant = 'list' }: Cl
<div className={cn("w-full min-w-0", isGrid ? "" : "overflow-x-auto scrollbar-hide")}>
<div className={cn("relative pt-3 group/rail", hasAgendas && !isGrid ? 'mb-20' : 'mb-10', isGrid ? "px-3" : "min-w-105 px-6")}>
{/* Continuous 2-Month Horizontal Rail */}
<div className="relative h-1.5 sm:h-2 w-full bg-muted/70 dark:bg-zinc-800 rounded-full">
<div className="relative h-1.5 sm:h-2 w-full bg-zinc-200/70 dark:bg-zinc-700/50 rounded-full">
{/* Gradient Segments connecting Hari Ini -> Agenda 1 -> Agenda 2 -> ... */}
<div className="absolute inset-0 rounded-full overflow-hidden pointer-events-none">
{gradientSegments.map((seg, idx) => (