Skip to content

Commit

Permalink
added autowidth to categorydropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
qianxuege committed Jul 9, 2024
1 parent 3a1e340 commit 86b267f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/CategoryDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ const CategoryDropdown:React.FC<CategoryDropdownProps> = ({page, categoryName, h
PaperProps: {
style: {
maxHeight: ITEM_HEIGHT * 4.5 + ITEM_PADDING_TOP,
width: 450,
// width: 300,
// overflow: scroll,
},
},
};
Expand Down Expand Up @@ -59,6 +60,7 @@ const CategoryDropdown:React.FC<CategoryDropdownProps> = ({page, categoryName, h
MenuProps={MenuProps}
inputProps={{ 'aria-label': 'Without label' }}
className="bg-white h-10"
autoWidth
>

<MenuItem disabled value="">
Expand Down

0 comments on commit 86b267f

Please sign in to comment.