mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-20 22:49:18 +00:00
refactor(timeline): style tweaks on status tags
This commit is contained in:
committed by
Carlos Valente
parent
70ce1d5553
commit
fa9695873a
@@ -150,7 +150,9 @@ function TimelineEntryStatus({
|
||||
statusText = getLocalizedString('timeline.due');
|
||||
}
|
||||
|
||||
return <div className={style.status}>{statusText}</div>;
|
||||
const isDue = status === 'future' && timeToStart <= 0;
|
||||
|
||||
return <div className={cx([style.status, isDue && style.due])}>{statusText}</div>;
|
||||
}
|
||||
|
||||
/** Generates a block level progress bar */
|
||||
|
||||
Reference in New Issue
Block a user