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 {
|
||||
forwardRef,
|
||||
Icon as ChakraIcon,
|
||||
NumberDecrementStepper as ChakraNumberDecrementStepper,
|
||||
NumberIncrementStepper as ChakraNumberIncrementStepper,
|
||||
NumberInputStepper as ChakraNumberInputStepper,
|
||||
} from '@chakra-ui/react';
|
||||
import { memo } from 'react';
|
||||
import { FaMinus, FaPlus } from 'react-icons/fa6';
|
||||
|
||||
import type { InvNumberInputStepperProps } from './types';
|
||||
|
||||
@ -16,10 +15,10 @@ export const InvNumberInputStepper = memo(
|
||||
return (
|
||||
<ChakraNumberInputStepper ref={ref} {...props}>
|
||||
<ChakraNumberIncrementStepper>
|
||||
<ChakraIcon as={FaPlus} boxSize={2} />
|
||||
<ChevronUpIcon />
|
||||
</ChakraNumberIncrementStepper>
|
||||
<ChakraNumberDecrementStepper>
|
||||
<ChakraIcon as={FaMinus} boxSize={2} />
|
||||
<ChevronDownIcon />
|
||||
</ChakraNumberDecrementStepper>
|
||||
</ChakraNumberInputStepper>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user