Skip to content

Commit

Permalink
Merge pull request #178 from JumboCode/main
Browse files Browse the repository at this point in the history
Fix dropdown
  • Loading branch information
kimhnguyenn committed Apr 30, 2024
2 parents 5f29aaf + 88a6cf9 commit 0af1fa9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/container/DropDownContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const DropDownContainer = (props: DropDownContainerProps) => {
</div>
<div
ref={animationDivRef}
className={`overflow-hidden py-2 ${
className={`overflow-hidden ${
showItems ? "max-h-[512px] md:max-h-[1024px]" : "max-h-0"
}`}
style={
Expand All @@ -53,7 +53,9 @@ const DropDownContainer = (props: DropDownContainerProps) => {
(ref.currentTarget.style["overflow"] = "auto")
}
>
<div className={props.elementsClassName ?? ""}>{props.children}</div>
<div className={props.elementsClassName ?? ""}>
<div className="pb-2">{props.children}</div>
</div>
</div>
</div>
);
Expand Down

0 comments on commit 0af1fa9

Please sign in to comment.