🚸 Fix vat input size for better placeholder visibility
This commit is contained in:
@ -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">
|
||||||
|
@ -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>
|
||||||
|
Reference in New Issue
Block a user