Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
fix(SupportWidget): limit content width for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
CanRau committed Oct 6, 2018
1 parent 535235c commit 985f4d4
Showing 1 changed file with 29 additions and 22 deletions.
51 changes: 29 additions & 22 deletions src/components/Shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@ const SupportWidgetContainer = styled.div({
},
})

const SupportWidgetIntro = styled.div`
width: 95%;
margin: 0 auto;
`

const SupportWidgetArtwork = styled.div({
display: `flex`,
alignItems: `flex-end`,
Expand Down Expand Up @@ -305,30 +310,32 @@ const SupportWidget = ({
},
}}
>
{title && <H2>{title}</H2>}
<SupportWidgetIntro>
{title && <H2>{title}</H2>}

{description && (
<p
css={{
textAlign: `center`,
marginBottom: `1rem`,
}}
dangerouslySetInnerHTML={{
__html: description,
}}
/>
)}
{description && (
<p
css={{
textAlign: `center`,
marginBottom: `1rem`,
}}
dangerouslySetInnerHTML={{
__html: description,
}}
/>
)}

{readMoreLink && (
<p
css={{
textAlign: `center`,
fontSize: `.9rem`,
}}
>
<Link to={readMoreLink}>{readMoreLabel}</Link>
</p>
)}
{readMoreLink && (
<p
css={{
textAlign: `center`,
fontSize: `.9rem`,
}}
>
<Link to={readMoreLink}>{readMoreLabel}</Link>
</p>
)}
</SupportWidgetIntro>

<SupportWidgetInner>
<SupportWidgetFormWrapper>
Expand Down

0 comments on commit 985f4d4

Please sign in to comment.