mirror of
https://github.com/Redocly/redoc.git
synced 2025-07-11 08:42:24 +03:00
slightly adapt style
This commit is contained in:
parent
7a59f57afd
commit
c2a2b41742
|
@ -50,7 +50,6 @@ export const PropertyCell = styled.td<{ kind?: string }>`
|
||||||
${props => props.theme.schema.linesColor} 5px
|
${props => props.theme.schema.linesColor} 5px
|
||||||
);
|
);
|
||||||
background-size: 1px 22px;
|
background-size: 1px 22px;
|
||||||
padding-bottom: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tr.last + tr > & {
|
tr.last + tr > & {
|
||||||
|
@ -172,6 +171,7 @@ export const PropertiesTable = styled.table`
|
||||||
display: block;
|
display: block;
|
||||||
> tr, > tbody > tr {
|
> tr, > tbody > tr {
|
||||||
display: block;
|
display: block;
|
||||||
|
padding-bottom:10px;
|
||||||
}
|
}
|
||||||
`}
|
`}
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ export const ClickablePropertyNameCell = styled(PropertyNameCell)`
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export const FieldLabel = styled.span`
|
export const FieldLabel = styled.span`
|
||||||
vertical-align: middle;
|
vertical-align: top;
|
||||||
font-size: ${({ theme }) => theme.typography.code.fontSize};
|
font-size: ${({ theme }) => theme.typography.code.fontSize};
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
`;
|
`;
|
||||||
|
|
|
@ -13,6 +13,7 @@ import { Markdown } from '../Markdown/Markdown';
|
||||||
import { ConstraintsView } from '../Fields/FieldConstraints';
|
import { ConstraintsView } from '../Fields/FieldConstraints';
|
||||||
import { RequiredLabel } from '../../common-elements/fields';
|
import { RequiredLabel } from '../../common-elements/fields';
|
||||||
import styled from '../../styled-components';
|
import styled from '../../styled-components';
|
||||||
|
import { ParameterDescriptionWrap } from './styled.elements';
|
||||||
|
|
||||||
function safePush(obj, prop, item) {
|
function safePush(obj, prop, item) {
|
||||||
if (!obj[prop]) {
|
if (!obj[prop]) {
|
||||||
|
@ -102,7 +103,9 @@ export function BodyContent(props: {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{description !== undefined && <p></p> && (
|
{description !== undefined && <p></p> && (
|
||||||
<Markdown className={'description-body-request'} source={description} />
|
<ParameterDescriptionWrap>
|
||||||
|
<Markdown source={description} />
|
||||||
|
</ParameterDescriptionWrap>
|
||||||
)}
|
)}
|
||||||
{schema?.type === 'object' && (
|
{schema?.type === 'object' && (
|
||||||
<ConstraintsView constraints={schema?.constraints || []} />
|
<ConstraintsView constraints={schema?.constraints || []} />
|
||||||
|
|
5
src/components/Parameters/styled.elements.tsx
Normal file
5
src/components/Parameters/styled.elements.tsx
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
import styled from '../../styled-components';
|
||||||
|
|
||||||
|
export const ParameterDescriptionWrap = styled.div`
|
||||||
|
padding-bottom: 10px;
|
||||||
|
`;
|
Loading…
Reference in New Issue
Block a user