mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-14 23:26:15 -05:00
Fix bracket deadline contrast issue
This commit is contained in:
@@ -473,16 +473,14 @@ function MatchTimerInner({
|
||||
|
||||
const displayText = elapsedMinutes >= 60 ? "1h+" : `${elapsedMinutes}m`;
|
||||
|
||||
const statusColor =
|
||||
status === "error"
|
||||
? "var(--color-error)"
|
||||
: status === "warning"
|
||||
? "var(--color-warning)"
|
||||
: "var(--color-text)";
|
||||
|
||||
return (
|
||||
<div className={styles.matchTimer} data-testid="bracket-match-timer">
|
||||
<div className={styles.matchHeaderBox} style={{ color: statusColor }}>
|
||||
<div
|
||||
className={clsx(styles.matchHeaderBox, styles.matchHeaderBoxButton, {
|
||||
[styles.matchTimerWarning]: status === "warning",
|
||||
[styles.matchTimerError]: status === "error",
|
||||
})}
|
||||
>
|
||||
{displayText}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -92,6 +92,14 @@
|
||||
margin-inline-start: 8px;
|
||||
}
|
||||
|
||||
.matchTimerWarning {
|
||||
background-color: var(--color-warning);
|
||||
}
|
||||
|
||||
.matchTimerError {
|
||||
background-color: var(--color-error);
|
||||
}
|
||||
|
||||
.match {
|
||||
width: var(--match-width);
|
||||
min-height: var(--match-height);
|
||||
|
||||
Reference in New Issue
Block a user