style fixes
This commit is contained in:
+3
-4
@@ -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) => (
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user