I added flex-shrink: 0; to fundStyle and I hope it's okay..? since if I don't have it, the collapsed UI would look like:
whereas if I have flex-shrink: 0;:
And when the card is expanded, the data is arranged in a way that the funds (funds & funds per turn) are left-aligned and all the other info (which is wrapped in a <Stack>) is right-aligned:
Lastly, the added condition to the winConditions.filter()—!condition.completed?.has(player.id))—ensures that optional objectives are not shown on the screen once completed.
P.S. Sorry, the generated diff looks very unintuitive 😅
Related to the discussions: https://github.com/nkzw-tech/athena-crisis/pull/34#issuecomment-2141532150, https://github.com/nkzw-tech/athena-crisis/pull/34#issuecomment-2141675890
I added
flex-shrink: 0;
tofundStyle
and I hope it's okay..? since if I don't have it, the collapsed UI would look like:whereas if I have
flex-shrink: 0;
:And when the card is expanded, the data is arranged in a way that the funds (funds & funds per turn) are left-aligned and all the other info (which is wrapped in a
<Stack>
) is right-aligned:Lastly, the added condition to the
winConditions.filter()
—!condition.completed?.has(player.id)
)—ensures that optional objectives are not shown on the screen once completed.P.S. Sorry, the generated diff looks very unintuitive 😅