mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): use larger chevrons for number input steppers
This commit is contained in:
parent
f3c8e986a5
commit
d256d93a2a
@ -1,12 +1,11 @@
|
|||||||
|
import { ChevronDownIcon, ChevronUpIcon } from '@chakra-ui/icons';
|
||||||
import {
|
import {
|
||||||
forwardRef,
|
forwardRef,
|
||||||
Icon as ChakraIcon,
|
|
||||||
NumberDecrementStepper as ChakraNumberDecrementStepper,
|
NumberDecrementStepper as ChakraNumberDecrementStepper,
|
||||||
NumberIncrementStepper as ChakraNumberIncrementStepper,
|
NumberIncrementStepper as ChakraNumberIncrementStepper,
|
||||||
NumberInputStepper as ChakraNumberInputStepper,
|
NumberInputStepper as ChakraNumberInputStepper,
|
||||||
} from '@chakra-ui/react';
|
} from '@chakra-ui/react';
|
||||||
import { memo } from 'react';
|
import { memo } from 'react';
|
||||||
import { FaMinus, FaPlus } from 'react-icons/fa6';
|
|
||||||
|
|
||||||
import type { InvNumberInputStepperProps } from './types';
|
import type { InvNumberInputStepperProps } from './types';
|
||||||
|
|
||||||
@ -16,10 +15,10 @@ export const InvNumberInputStepper = memo(
|
|||||||
return (
|
return (
|
||||||
<ChakraNumberInputStepper ref={ref} {...props}>
|
<ChakraNumberInputStepper ref={ref} {...props}>
|
||||||
<ChakraNumberIncrementStepper>
|
<ChakraNumberIncrementStepper>
|
||||||
<ChakraIcon as={FaPlus} boxSize={2} />
|
<ChevronUpIcon />
|
||||||
</ChakraNumberIncrementStepper>
|
</ChakraNumberIncrementStepper>
|
||||||
<ChakraNumberDecrementStepper>
|
<ChakraNumberDecrementStepper>
|
||||||
<ChakraIcon as={FaMinus} boxSize={2} />
|
<ChevronDownIcon />
|
||||||
</ChakraNumberDecrementStepper>
|
</ChakraNumberDecrementStepper>
|
||||||
</ChakraNumberInputStepper>
|
</ChakraNumberInputStepper>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user