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 20, 2023
1 parent 94fd7a1 commit d974b59
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 @@ -74,12 +74,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 d974b59

Please sign in to comment.