fix: correctly show header on generic content pages

This commit is contained in:
Jean-Philippe Sirois
2021-06-01 00:18:01 -04:00
parent fd7005c9df
commit efb1fe724b
2 changed files with 5 additions and 6 deletions
+1 -5
View File
@@ -88,11 +88,7 @@ export const HeaderBarebone = (props: IHeaderBareboneProps) => {
<SC.Background /> <SC.Background />
<StickyContainer> <StickyContainer>
{isBoxed && ( <StickyBoxedTitle above={props.above}>{props.title}</StickyBoxedTitle>
<StickyBoxedTitle above={props.above}>{props.title}</StickyBoxedTitle>
)}
{!isBoxed && <SC.SingleTitle>{props.title}</SC.SingleTitle>}
</StickyContainer> </StickyContainer>
</SC.HeaderWrapperSticky> </SC.HeaderWrapperSticky>
) )
+4 -1
View File
@@ -212,7 +212,10 @@ export const StickyTitle = styled.h1`
${title}; ${title};
font-size: 20px; font-size: 20px;
line-height: 1; line-height: 1;
margin-bottom: 8px;
&.has-content-above {
margin-bottom: 8px;
}
&.has-content-below { &.has-content-below {
margin-bottom: 16px; margin-bottom: 16px;