fix: rounds_remaining null fallback; is_dead guard on dying tag; flex layout
This commit is contained in:
parent
bf7db6bd4c
commit
7cfe677126
2 changed files with 3 additions and 2 deletions
|
|
@ -309,6 +309,7 @@
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.recoveryBtn {
|
.recoveryBtn {
|
||||||
|
|
|
||||||
|
|
@ -278,9 +278,9 @@ function ActivePhase({
|
||||||
<span className={partyActive ? styles.activeName : styles.rollName}>
|
<span className={partyActive ? styles.activeName : styles.rollName}>
|
||||||
{c.is_dead ? "\u{1F480} " : ""}{c.name}
|
{c.is_dead ? "\u{1F480} " : ""}{c.name}
|
||||||
</span>
|
</span>
|
||||||
{dyingCondition && (
|
{dyingCondition && !c.is_dead && (
|
||||||
<span className={styles.dyingTag}>
|
<span className={styles.dyingTag}>
|
||||||
{"\u{1F480}"} Dying ({dyingCondition.rounds_remaining}r)
|
{"\u{1F480}"} Dying ({dyingCondition.rounds_remaining ?? "?"}r)
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
{isDM && dyingCondition && !c.is_dead && (
|
{isDM && dyingCondition && !c.is_dead && (
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue