2
0

🚸 Fix vat input size for better placeholder visibility

This commit is contained in:
Baptiste Arnaud
2024-02-06 16:33:47 +01:00
parent 3a70d837e9
commit 2fb0a4fcc6
2 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,7 @@ export type TextInputProps = {
| 'autoFocus' | 'autoFocus'
| 'size' | 'size'
| 'maxWidth' | 'maxWidth'
| 'flexShrink'
> >
export const TextInput = forwardRef(function TextInput( export const TextInput = forwardRef(function TextInput(
@ -68,6 +69,7 @@ export const TextInput = forwardRef(function TextInput(
maxWidth, maxWidth,
direction = 'column', direction = 'column',
width, width,
flexShrink,
}: TextInputProps, }: TextInputProps,
ref ref
) { ) {
@ -145,6 +147,7 @@ export const TextInput = forwardRef(function TextInput(
justifyContent="space-between" justifyContent="space-between"
width={label || width === 'full' ? 'full' : 'auto'} width={label || width === 'full' ? 'full' : 'auto'}
spacing={direction === 'column' ? 2 : 3} spacing={direction === 'column' ? 2 : 3}
flexShrink={flexShrink}
> >
{label && ( {label && (
<FormLabel display="flex" flexShrink={0} gap="1" mb="0" mr="0"> <FormLabel display="flex" flexShrink={0} gap="1" mb="0" mr="0">

View File

@ -161,6 +161,7 @@ export const PreCheckoutModal = ({
withVariableButton={false} withVariableButton={false}
debounceTimeout={0} debounceTimeout={0}
placeholder={vatValuePlaceholder} placeholder={vatValuePlaceholder}
flexShrink={0}
/> />
</HStack> </HStack>
</FormControl> </FormControl>