Skip to content

Commit

Permalink
fix: use align-self: start instead of wrapping div
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jul 29, 2020
1 parent 25bb8a3 commit 71309ea
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/layouts/MainLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,14 @@ const MainLayout = ({ children }) => {
>
{children}
</article>
<div>
<RelatedContent
css={css`
position: sticky;
top: calc(var(--global-header-height) + ${layout.contentPadding});
grid-area: related-content;
`}
/>
</div>
<RelatedContent
css={css`
align-self: start;
position: sticky;
top: calc(var(--global-header-height) + ${layout.contentPadding});
grid-area: related-content;
`}
/>
<Footer
css={css`
grid-area: footer;
Expand Down

0 comments on commit 71309ea

Please sign in to comment.