More fixes lol

This commit is contained in:
Regalijan 2024-03-16 02:40:23 -04:00
parent f648fe8a0c
commit bb62d3f430
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -6,7 +6,6 @@ import {
CardFooter,
CardHeader,
Heading,
Input,
ListItem,
Modal,
ModalBody,
@ -123,6 +122,7 @@ export default function (props: GameAppealProps & { port?: MessagePort }) {
min={-10}
onChange={(_, n) => setPercentage(n)}
precision={0}
w="100%"
>
<NumberInputField />
<NumberInputStepper>
@ -130,17 +130,6 @@ export default function (props: GameAppealProps & { port?: MessagePort }) {
<NumberDecrementStepper />
</NumberInputStepper>
</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>
<UnorderedList alignSelf="start">
<ListItem>