mirror of
https://github.com/Redocly/redoc.git
synced 2025-07-10 16:22:27 +03:00
DX-3083 Fix Dropdown Arrows and Expand Default
This commit is contained in:
parent
3d410b6002
commit
db1944ec10
|
@ -42,6 +42,7 @@ export const ClickablePropertyNameCell = styled(PropertyNameCell)`
|
||||||
${ShelfIcon} {
|
${ShelfIcon} {
|
||||||
height: ${({ theme }) => theme.schema.arrow.size};
|
height: ${({ theme }) => theme.schema.arrow.size};
|
||||||
width: ${({ theme }) => theme.schema.arrow.size};
|
width: ${({ theme }) => theme.schema.arrow.size};
|
||||||
|
margin-top: -2px;
|
||||||
polygon {
|
polygon {
|
||||||
fill: ${({ theme }) => theme.schema.arrow.color};
|
fill: ${({ theme }) => theme.schema.arrow.color};
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,7 +78,7 @@ function argValueToNumber(value: number | string | undefined): number | undefine
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function argValueToExpandLevel(value?: number | string | undefined, defaultValue = 0): number {
|
function argValueToExpandLevel(value?: number | string | undefined, defaultValue = 1): number {
|
||||||
if (value === 'all') return Infinity;
|
if (value === 'all') return Infinity;
|
||||||
|
|
||||||
return argValueToNumber(value) || defaultValue;
|
return argValueToNumber(value) || defaultValue;
|
||||||
|
|
|
@ -97,7 +97,7 @@ const defaultTheme: ThemeInterface = {
|
||||||
nestingSpacing: '1em',
|
nestingSpacing: '1em',
|
||||||
nestedBackground: '#fafafa',
|
nestedBackground: '#fafafa',
|
||||||
arrow: {
|
arrow: {
|
||||||
size: '1.1em',
|
size: '1.3em',
|
||||||
color: theme => theme.colors.text.secondary,
|
color: theme => theme.colors.text.secondary,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user