forked from mico/idle_moloch
addUnit fix
This commit is contained in:
parent
8e547576e0
commit
56803dd8c6
@ -102,7 +102,7 @@ const Unit = ({
|
||||
}, [unitLevel, unitType]);
|
||||
return (
|
||||
<div
|
||||
onClick={() => addUnit(unitType, 10)}
|
||||
onClick={() => addUnit(unitType)}
|
||||
className={`${styles.armyUnit} ${
|
||||
canPurchase ? "" : styles.isUnavailable
|
||||
}`}
|
||||
|
||||
@ -44,7 +44,7 @@
|
||||
thunder 4s linear infinite;
|
||||
}
|
||||
.clouds_small {
|
||||
top: 270px;
|
||||
top: 285px;
|
||||
height: 82px;
|
||||
background-image: url("/background/clouds_small.png");
|
||||
animation:
|
||||
@ -60,6 +60,9 @@
|
||||
top: 130px;
|
||||
right: 10px;
|
||||
left: auto;
|
||||
@media only screen and (max-width: 600px) {
|
||||
right: -20px;
|
||||
}
|
||||
animation: thunder_hue_hard 12s linear infinite;
|
||||
transition: all 0.1s cubic-bezier(0.265, 1.4, 0.68, 1.65);
|
||||
transform-origin: bottom center;
|
||||
@ -119,6 +122,9 @@
|
||||
height: 372px;
|
||||
top: 90px;
|
||||
left: -10px;
|
||||
@media only screen and (max-width: 600px) {
|
||||
left: -80px;
|
||||
}
|
||||
animation: thunder_hue_hard 12s linear infinite;
|
||||
transition: all 0.1s cubic-bezier(0.265, 1.4, 0.68, 1.65);
|
||||
transform-origin: bottom center;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user