Attributes inspector style improvements
Summary: - Vertically center values - Add gutter between rows/cols - Tryout the removal of the indentation border (it could either be removed in the future or brought back) Reviewed By: antonk52 Differential Revision: D42581663 fbshipit-source-id: cd682adca7f76f80240a0ca6d9023368a33453c3
This commit is contained in:
committed by
Facebook GitHub Bot
parent
823eddc4ad
commit
92ac6988d5
@@ -52,7 +52,7 @@ const NamedAttributeInspector: React.FC<NamedAttributeInspectorProps> = ({
|
|||||||
children,
|
children,
|
||||||
}) => {
|
}) => {
|
||||||
return (
|
return (
|
||||||
<Row style={RowStyle}>
|
<Row style={RowStyle} justify="center" align="middle" gutter={[16, 0]}>
|
||||||
<Col span={8} style={AutoMarginStyle}>
|
<Col span={8} style={AutoMarginStyle}>
|
||||||
{name}
|
{name}
|
||||||
</Col>
|
</Col>
|
||||||
@@ -82,7 +82,7 @@ const ObjectAttributeInspector: React.FC<{
|
|||||||
style={{
|
style={{
|
||||||
paddingLeft: level,
|
paddingLeft: level,
|
||||||
}}>
|
}}>
|
||||||
{create(metadata, attributeName, inspectableValue, level + 2)}
|
{create(metadata, attributeName, inspectableValue, level + 5)}
|
||||||
</ObjectContainer>
|
</ObjectContainer>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
@@ -108,7 +108,7 @@ const ArrayAttributeInspector: React.FC<{
|
|||||||
style={{
|
style={{
|
||||||
paddingLeft: level,
|
paddingLeft: level,
|
||||||
}}>
|
}}>
|
||||||
{create(metadata, attributeName, inspectableValue, level + 2)}
|
{create(metadata, attributeName, inspectableValue, level + 5)}
|
||||||
</ObjectContainer>
|
</ObjectContainer>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ export const RowStyle = {
|
|||||||
|
|
||||||
export const ObjectContainerStyle = {
|
export const ObjectContainerStyle = {
|
||||||
borderLeftWidth: 5,
|
borderLeftWidth: 5,
|
||||||
borderLeftColor: 'lightgray',
|
borderLeftColor: 'transparent',
|
||||||
borderLeftStyle: 'solid',
|
borderLeftStyle: 'solid',
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user