Skip to content

Commit 8fb9cd6

Browse files
committed
fix: fix linebreaks in multiparagraph field descriptions
1 parent f70ac08 commit 8fb9cd6

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

src/components/Markdown/styled.elements.ts

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,21 @@ export const StyledMarkdownBlock = withProps<{ dense?: boolean; inline?: boolean
2626
line-height: ${props => props.theme.typography.lineHeight};
2727
2828
p {
29-
&:last-of-type {
29+
&:last-child {
3030
margin-bottom: 0;
3131
}
3232
}
3333
3434
${({ dense }) =>
3535
dense &&
36-
` p {
37-
margin: 0;
38-
}`}
36+
`
37+
p:first-child {
38+
margin-top: 0;
39+
}
40+
p:last-child {
41+
margin-bottom: 0;
42+
}
43+
`}
3944
4045
${({ inline }) =>
4146
inline &&
@@ -108,9 +113,9 @@ export const StyledMarkdownBlock = withProps<{ dense?: boolean; inline?: boolean
108113
padding-left: 2em;
109114
margin: 0;
110115
margin-bottom: 1em;
111-
> li {
112-
margin: 1em 0;
113-
}
116+
// > li {
117+
// margin: 0.5em 0;
118+
// }
114119
}
115120
116121
table {

0 commit comments

Comments
 (0)