mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-31 10:04:08 +03:00
fix: fix linebreaks in multiparagraph field descriptions
This commit is contained in:
parent
f70ac081fe
commit
8fb9cd6bac
|
@ -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 &&
|
||||
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user