From a5590dee236c59f3b6d217c31f49ccc0e7ebd20c Mon Sep 17 00:00:00 2001 From: NilsUeter Date: Sun, 22 Oct 2023 17:33:43 +0200 Subject: [PATCH] style improvements --- src/10th/Roster.jsx | 14 ++++++++++++-- src/10th/Weapons.jsx | 1 + src/App.jsx | 10 ++++++---- src/index.css | 2 +- 4 files changed, 20 insertions(+), 7 deletions(-) diff --git a/src/10th/Roster.jsx b/src/10th/Roster.jsx index 7c8ac88..f59e0bc 100644 --- a/src/10th/Roster.jsx +++ b/src/10th/Roster.jsx @@ -185,6 +185,7 @@ const Unit = ({ unit, index, catalog, onePerPage, forceRules }) => { padding: "4px 16px", color: "#fff", position: "relative", + marginLeft: "1.3rem", }} >
{ }} >
{
-
+
{ wounds = "/"; } + if (modelList.length === 1) { + modelList[0] = modelList[0] + .replace(name, "") + .replace("(", "") + .replace(")", ""); + } + const showWeapons = index === 0; return (
@@ -471,6 +480,7 @@ const ModelStats = ({ modelStat, index, showName, modelList }) => { marginTop: 16, fontSize: "0.7em", paddingLeft: showName ? 8 : 0, + backgroundColor: "var(--primary-color-transparent)", }} > {modelList.map((model, index) => ( diff --git a/src/10th/Weapons.jsx b/src/10th/Weapons.jsx index 775ef92..937e40d 100644 --- a/src/10th/Weapons.jsx +++ b/src/10th/Weapons.jsx @@ -114,6 +114,7 @@ const Weapon = ({ weapon, previousWeapon, nextWeapon, isMelee, className }) => {