Skip to content

Commit

Permalink
🚸 Fix vat input size for better placeholder visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Feb 6, 2024
1 parent 3a70d83 commit 2fb0a4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/builder/src/components/inputs/TextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export type TextInputProps = {
| 'autoFocus'
| 'size'
| 'maxWidth'
| 'flexShrink'
>

export const TextInput = forwardRef(function TextInput(
Expand All @@ -68,6 +69,7 @@ export const TextInput = forwardRef(function TextInput(
maxWidth,
direction = 'column',
width,
flexShrink,
}: TextInputProps,
ref
) {
Expand Down Expand Up @@ -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">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ export const PreCheckoutModal = ({
withVariableButton={false}
debounceTimeout={0}
placeholder={vatValuePlaceholder}
flexShrink={0}
/>
</HStack>
</FormControl>
Expand Down

0 comments on commit 2fb0a4f

Please sign in to comment.