feat: update quota display
1. Update quota display: from one row two resources to onw row only one resource 2. Update quota card style Change-Id: If978a54c53eaad442bc165832cf3fd6e90719080
This commit is contained in:
parent
32cb739fd6
commit
b1591a9a56
@ -236,9 +236,14 @@ export class QuotaOverview extends Component {
|
|||||||
return (
|
return (
|
||||||
<Row className={styles.content}>
|
<Row className={styles.content}>
|
||||||
{this.quotaCardList.map((item) => (
|
{this.quotaCardList.map((item) => (
|
||||||
<Col className={styles.card} span={12} key={item.type}>
|
<Col className={styles.card} span={24} key={item.type}>
|
||||||
<Card title={item.text} bordered={false} loading={isLoading}>
|
<Card
|
||||||
{this.renderQuotaCardContent(item)}
|
title={item.text}
|
||||||
|
bordered={false}
|
||||||
|
loading={isLoading}
|
||||||
|
size="small"
|
||||||
|
>
|
||||||
|
<Row gutter={24}>{this.renderQuotaCardContent(item)}</Row>
|
||||||
</Card>
|
</Card>
|
||||||
</Col>
|
</Col>
|
||||||
))}
|
))}
|
||||||
@ -252,6 +257,7 @@ export class QuotaOverview extends Component {
|
|||||||
title={this.volumeTypesQuota.text}
|
title={this.volumeTypesQuota.text}
|
||||||
bordered={false}
|
bordered={false}
|
||||||
loading={isLoading}
|
loading={isLoading}
|
||||||
|
size="small"
|
||||||
>
|
>
|
||||||
{this.renderVolumeTypes()}
|
{this.renderVolumeTypes()}
|
||||||
</Card>
|
</Card>
|
||||||
@ -273,7 +279,11 @@ export class QuotaOverview extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
renderQuotaCard = (data, item = []) =>
|
renderQuotaCard = (data, item = []) =>
|
||||||
item.map((i) => <div key={i.text}>{this.getItemInfo(data, i)}</div>);
|
item.map((i) => (
|
||||||
|
<Col key={i.text} span={12}>
|
||||||
|
{this.getItemInfo(data, i)}
|
||||||
|
</Col>
|
||||||
|
));
|
||||||
|
|
||||||
renderVolumeTypes = () => {
|
renderVolumeTypes = () => {
|
||||||
const { isLoading } = this.state;
|
const { isLoading } = this.state;
|
||||||
@ -310,6 +320,7 @@ export class QuotaOverview extends Component {
|
|||||||
className={styles.bottom}
|
className={styles.bottom}
|
||||||
bodyStyle={{ padding: 0 }}
|
bodyStyle={{ padding: 0 }}
|
||||||
loading={isLoading}
|
loading={isLoading}
|
||||||
|
headStyle={{ paddingLeft: '20px' }}
|
||||||
title={
|
title={
|
||||||
<div className={styles.title}>
|
<div className={styles.title}>
|
||||||
<span className={styles.text}>{t('Quota Overview')}</span>
|
<span className={styles.text}>{t('Quota Overview')}</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user