Skip to content

Commit

Permalink
Chore/remove fixed height (#2142)
Browse files Browse the repository at this point in the history
remove fixed height
  • Loading branch information
HenryHengZJ committed Apr 9, 2024
1 parent 0511ea1 commit eabc84e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/ui/src/ui-component/dropdown/AsyncDropdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export const AsyncDropdown = ({
disabled={disabled}
disableClearable={disableClearable}
size='small'
sx={{ width: '100%', height: '52px' }}
sx={{ mt: 1, width: '100%' }}
open={open}
onOpen={() => {
setOpen(true)
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/ui-component/dropdown/Dropdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const Dropdown = ({ name, value, options, onSelect, disabled = false, dis
let [internalValue, setInternalValue] = useState(value ?? 'choose an option')

return (
<FormControl sx={{ width: '100%', height: '52px' }} size='small'>
<FormControl sx={{ mt: 1, width: '100%' }} size='small'>
<Autocomplete
id={name}
disabled={disabled}
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/ui-component/dropdown/MultiDropdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const MultiDropdown = ({ name, value, options, onSelect, formControlSx =
let [internalValue, setInternalValue] = useState(value ?? [])

return (
<FormControl sx={{ width: '100%', height: '52px', ...formControlSx }} size='small'>
<FormControl sx={{ mt: 1, width: '100%', ...formControlSx }} size='small'>
<Autocomplete
id={name}
disabled={disabled}
Expand Down

0 comments on commit eabc84e

Please sign in to comment.