style fixes

This commit is contained in:
NilsUeter
2023-10-13 17:25:06 +02:00
parent 9532a6edd5
commit 1762632f26
2 changed files with 3 additions and 5 deletions
+3 -4
View File
@@ -468,12 +468,11 @@ const ModelStats = ({ modelStat, index, showName, modelList }) => {
<Characteristic title="W" characteristic={wounds} index={index} /> <Characteristic title="W" characteristic={wounds} index={index} />
<Characteristic title="LD" characteristic={leadership} index={index} /> <Characteristic title="LD" characteristic={leadership} index={index} />
<Characteristic title="OC" characteristic={oc} index={index} /> <Characteristic title="OC" characteristic={oc} index={index} />
<div style={{ display: "flex", alignItems: "center" }}> <div style={{ display: "flex", alignItems: "center", marginLeft: -10 }}>
{showName && ( {showName && (
<div <div
style={{ style={{
marginTop: index === 0 ? 16 : 0, marginTop: index === 0 ? 16 : 0,
marginLeft: -10,
whiteSpace: "nowrap", whiteSpace: "nowrap",
}} }}
> >
@@ -483,9 +482,9 @@ const ModelStats = ({ modelStat, index, showName, modelList }) => {
{showWeapons && ( {showWeapons && (
<div <div
style={{ style={{
marginTop: index === 0 && !showName ? 16 : 0, marginTop: 16,
marginLeft: -10,
fontSize: "0.7em", fontSize: "0.7em",
paddingLeft: showName ? 8 : 0,
}} }}
> >
{modelList.map((model, index) => ( {modelList.map((model, index) => (
-1
View File
@@ -15,7 +15,6 @@ export function useLocalStorage(key, initValue) {
}); });
useEffect(() => { useEffect(() => {
console.log(state);
if (!state || state === "undefined") { if (!state || state === "undefined") {
localStorage.removeItem(key); localStorage.removeItem(key);
} else { } else {