Merge pull request #16 from ckoegel/DX-3083

DX-3083 Fix Dropdown Arrows and Expand Default
This commit is contained in:
Cameron Koegel 2023-01-05 14:35:21 -05:00 committed by GitHub
commit 93c795b070
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -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};
} }

View File

@ -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;

View File

@ -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,
}, },
}, },