More fixes lol
This commit is contained in:
parent
f648fe8a0c
commit
bb62d3f430
@ -6,7 +6,6 @@ import {
|
|||||||
CardFooter,
|
CardFooter,
|
||||||
CardHeader,
|
CardHeader,
|
||||||
Heading,
|
Heading,
|
||||||
Input,
|
|
||||||
ListItem,
|
ListItem,
|
||||||
Modal,
|
Modal,
|
||||||
ModalBody,
|
ModalBody,
|
||||||
@ -123,6 +122,7 @@ export default function (props: GameAppealProps & { port?: MessagePort }) {
|
|||||||
min={-10}
|
min={-10}
|
||||||
onChange={(_, n) => setPercentage(n)}
|
onChange={(_, n) => setPercentage(n)}
|
||||||
precision={0}
|
precision={0}
|
||||||
|
w="100%"
|
||||||
>
|
>
|
||||||
<NumberInputField />
|
<NumberInputField />
|
||||||
<NumberInputStepper>
|
<NumberInputStepper>
|
||||||
@ -130,17 +130,6 @@ export default function (props: GameAppealProps & { port?: MessagePort }) {
|
|||||||
<NumberDecrementStepper />
|
<NumberDecrementStepper />
|
||||||
</NumberInputStepper>
|
</NumberInputStepper>
|
||||||
</NumberInput>
|
</NumberInput>
|
||||||
<Input
|
|
||||||
onBeforeInput={(e) => {
|
|
||||||
const value = (e.target as EventTarget & { value: string })
|
|
||||||
.value;
|
|
||||||
|
|
||||||
if (value !== "-" && value && !value.match(/^-?\d{0,3}$/))
|
|
||||||
e.preventDefault();
|
|
||||||
}}
|
|
||||||
onChange={(e) => setPercentage(parseInt(e.target.value))}
|
|
||||||
placeholder="Reduction factor"
|
|
||||||
/>
|
|
||||||
<Text alignSelf="start">Stat multiplication factors:</Text>
|
<Text alignSelf="start">Stat multiplication factors:</Text>
|
||||||
<UnorderedList alignSelf="start">
|
<UnorderedList alignSelf="start">
|
||||||
<ListItem>
|
<ListItem>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user