Skip to content

Commit 9db9921

Browse files
72 fixed the position for the collapse button (#95)
1 parent e14d544 commit 9db9921

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

sections/executive-team-section/index.js

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ const AvatarList = styled.div`
4949
const LinkButtonContainer = styled.div`
5050
display: flex;
5151
flex-direction: column;
52+
align-self: flex-end;
5253
margin-top: ${rem('24px')};
54+
margin-bottom: ${rem('32px')};
5355
`
5456

5557
const LinkButton = styled.button`
@@ -131,20 +133,20 @@ const ExecutiveTeamSection = () => {
131133
{peopleToShow.map((person) => (
132134
<ExecutiveAvatar {...person} key={person.name} />
133135
))}
136+
{isCompactScreen && (
137+
<LinkButtonContainer>
138+
<LinkButton
139+
onClick={() => setShowAllPeople(!showAllPeople)}
140+
type="button"
141+
>
142+
<LinkButtonTextContainer>
143+
{showAllPeople ? 'Whole Team' : 'Collapse'}
144+
</LinkButtonTextContainer>
145+
{showAllPeople ? <ChevronSvg /> : <InvertedChevronSvg />}
146+
</LinkButton>
147+
</LinkButtonContainer>
148+
)}
134149
</AvatarList>
135-
{isCompactScreen && (
136-
<LinkButtonContainer>
137-
<LinkButton
138-
onClick={() => setShowAllPeople(!showAllPeople)}
139-
type="button"
140-
>
141-
<LinkButtonTextContainer>
142-
{showAllPeople ? 'Whole Team' : 'Collapse'}
143-
</LinkButtonTextContainer>
144-
{showAllPeople ? <ChevronSvg /> : <InvertedChevronSvg />}
145-
</LinkButton>
146-
</LinkButtonContainer>
147-
)}
148150
</FlexSectionContents>
149151
</StyledSection>
150152
)

0 commit comments

Comments
 (0)