works on mobile

This commit is contained in:
Sendou
2020-05-25 19:02:13 +03:00
parent df4143b52e
commit 1b80e5022b
3 changed files with 10 additions and 4 deletions

View File

@@ -69,7 +69,11 @@ const BuildAnalyzerPage: React.FC<RouteComponentProps> = () => {
otherFocused={otherFocused}
/>
)}
<Button icon={FaWrench} onClick={() => setShowSettings(!showSettings)}>
<Button
icon={FaWrench}
onClick={() => setShowSettings(!showSettings)}
mt="1em"
>
{showSettings ? "Hide settings" : "Show settings"}
</Button>
{showSettings && (

View File

@@ -89,7 +89,7 @@ const BuildStats: React.FC<BuildStatsProps> = ({
<>
<Flex justifyContent="space-between">
<Flex fontWeight="bold" mr="1em" mb="0.5em" alignItems="center">
<Box mr="0.5em">
<Box mr="0.5em" minW="30px">
<AbilityIcon ability={ability} size="TINY" />
</Box>
<IconButton icon={FaChartLine} onClick={() => toggleChart()} />

View File

@@ -30,11 +30,14 @@ function buildToAP(build: Partial<Build>) {
})
}
let subWorth = 3
if (build.clothing) {
build.clothing.forEach((ability, index) => {
if (ability !== "UNKNOWN") {
if (ability === "AD") subWorth *= 2
const existing = AP[ability] ?? 0
const toAdd = index === 0 ? 10 : 3
const toAdd = index === 0 ? 10 : subWorth
AP[ability] = existing + toAdd
}
})
@@ -769,7 +772,6 @@ export default function useAbilityEffects(build: Partial<Build>) {
const effectHit = getEffect(highMidLowHit, amount)
const effectAtZeroHit = getEffect(highMidLowHit, 0)
console.log("effectHit", effectHit)
toReturn.push({
title: `Baller 55dmg explosion hitbox size`,