Skip to content

Commit

Permalink
fix(herosdielayout): cneter dropdown in desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
seaerchin committed Sep 14, 2023
1 parent 12dba17 commit 452cc38
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions src/templates/homepage/HeroSection/HeroSideLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,20 @@ const HeroInfoboxDesktop = ({
)}

{dropdown ? (
<HeroDropdown
title={dropdown.title}
options={dropdown.options}
isActive={dropdownIsActive}
toggleDropdown={toggleDropdown}
/>
<div
className={getClassNames(editorStyles, ["is-flex"])}
style={{
justifyContent: "center",
alignContent: "center",
}}
>
<HeroDropdown
title={dropdown.title}
options={dropdown.options}
isActive={dropdownIsActive}
toggleDropdown={toggleDropdown}
/>
</div>
) : (
// NOTE: This is to mirror the template structure
// as closely as possible.
Expand Down

0 comments on commit 452cc38

Please sign in to comment.