Skip to content

Commit

Permalink
fix: fix linebreaks in multiparagraph field descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed Aug 7, 2018
1 parent f70ac08 commit 8fb9cd6
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/components/Markdown/styled.elements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,21 @@ export const StyledMarkdownBlock = withProps<{ dense?: boolean; inline?: boolean
line-height: ${props => props.theme.typography.lineHeight};
p {
&:last-of-type {
&:last-child {
margin-bottom: 0;
}
}
${({ dense }) =>
dense &&
` p {
margin: 0;
}`}
`
p:first-child {
margin-top: 0;
}
p:last-child {
margin-bottom: 0;
}
`}
${({ inline }) =>
inline &&
Expand Down Expand Up @@ -108,9 +113,9 @@ export const StyledMarkdownBlock = withProps<{ dense?: boolean; inline?: boolean
padding-left: 2em;
margin: 0;
margin-bottom: 1em;
> li {
margin: 1em 0;
}
// > li {
// margin: 0.5em 0;
// }
}
table {
Expand Down

0 comments on commit 8fb9cd6

Please sign in to comment.