From 64930fb22a6dd8aa82b02435eec06608c0d6fcc8 Mon Sep 17 00:00:00 2001 From: NilsUeter Date: Mon, 8 May 2023 07:58:37 +0200 Subject: [PATCH] more responsive design for characteristics --- src/Roster.jsx | 73 +++++++++++++++++++++++++------------------------- 1 file changed, 37 insertions(+), 36 deletions(-) diff --git a/src/Roster.jsx b/src/Roster.jsx index 8e57ef8..2c45b7a 100644 --- a/src/Roster.jsx +++ b/src/Roster.jsx @@ -392,44 +392,45 @@ const ModelStats = ({ - - {showName && ( -
- {name} -
- )} - {showWeapons && ( -
- {modelListMatches.map((model, index) => ( -
{model}
- ))} -
- )} - {degradingStuff.length > 0 && ( -
- {`Each time this model makes +
+ {showName && ( +
+ {name} +
+ )} + {showWeapons && ( +
+ {modelListMatches.map((model, index) => ( +
{model}
+ ))} +
+ )} + {degradingStuff.length > 0 && ( +
+ {`Each time this model makes an attack, subtract ${degradingStuff.join(" and ")}.`} -
- )} +
+ )} +
); };