mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 20:07:37 -02:30
Increase label font-weight and vertically align labels and chips
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
.awx-c-chip--basic {
|
.awx-c-chip--basic {
|
||||||
padding: 6px 8px;
|
padding: 3px 8px;
|
||||||
height: 30px;
|
height: 24px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
|
|
||||||
|
|||||||
@@ -16,18 +16,24 @@ const detailWrapperStyle = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const detailLabelStyle = {
|
const detailLabelStyle = {
|
||||||
minWidth: '150px',
|
fontWeight: '700',
|
||||||
|
lineHeight: '30px',
|
||||||
marginRight: '20px',
|
marginRight: '20px',
|
||||||
|
minWidth: '150px',
|
||||||
textAlign: 'right'
|
textAlign: 'right'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const detailValueStyle = {
|
||||||
|
lineHeight: '24px'
|
||||||
|
};
|
||||||
|
|
||||||
const Detail = ({ label, value }) => {
|
const Detail = ({ label, value }) => {
|
||||||
let detail = null;
|
let detail = null;
|
||||||
if (value) {
|
if (value) {
|
||||||
detail = (
|
detail = (
|
||||||
<TextContent style={detailWrapperStyle}>
|
<TextContent style={detailWrapperStyle}>
|
||||||
<Text component={TextVariants.h6} style={detailLabelStyle}>{ label }</Text>
|
<Text component={TextVariants.h6} style={detailLabelStyle}>{ label }</Text>
|
||||||
<Text component={TextVariants.p}>{ value }</Text>
|
<Text component={TextVariants.p} style={detailValueStyle}>{ value }</Text>
|
||||||
</TextContent>
|
</TextContent>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -105,7 +111,7 @@ class OrganizationDetail extends Component {
|
|||||||
>
|
>
|
||||||
<Trans>Instance Groups</Trans>
|
<Trans>Instance Groups</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
<div>
|
<div style={detailValueStyle}>
|
||||||
{instanceGroups.map(instanceGroup => (
|
{instanceGroups.map(instanceGroup => (
|
||||||
<BasicChip
|
<BasicChip
|
||||||
key={instanceGroup.id}
|
key={instanceGroup.id}
|
||||||
|
|||||||
Reference in New Issue
Block a user