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

View File

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