<DomainPanel domain="coverage">
<DomainNutshell>
<MeasuresList>
- <Measure label={getMetricName('coverage')}>
- <span className="big-spacer-right">
+
+ <Measure composite={true}>
+ <div className="display-inline-block text-middle big-spacer-right">
<DonutChart width="40" height="40" thickness="3" data={donutData}/>
- </span>
- <DrilldownLink component={this.props.component.key} metric={coverageMetric}>
- <span className="js-overview-main-coverage">
- {formatMeasure(this.props.measures[coverageMetric], 'PERCENT')}
- </span>
- </DrilldownLink>
+ </div>
+ <div className="display-inline-block text-middle">
+ <div className="overview-domain-measure-value">
+ <DrilldownLink component={this.props.component.key} metric={coverageMetric}>
+ <span className="js-overview-main-coverage">
+ {formatMeasure(this.props.measures[coverageMetric], 'PERCENT')}
+ </span>
+ </DrilldownLink>
+ </div>
+ <div className="overview-domain-measure-label">{getMetricName('coverage')}</div>
+ </div>
</Measure>
+
{this.renderTests()}
</MeasuresList>
{this.renderTimeline('before')}
<DomainPanel domain="duplications">
<DomainNutshell>
<MeasuresList>
- <Measure label={getMetricName('duplications')}>
- <span className="big-spacer-right">
+
+ <Measure composite={true}>
+ <div className="display-inline-block text-middle big-spacer-right">
<DonutChart width="40" height="40" thickness="3" data={donutData}/>
- </span>
- <DrilldownLink component={this.props.component.key} metric="duplicated_lines_density">
- {formatMeasure(this.props.measures['duplicated_lines_density'], 'PERCENT')}
- </DrilldownLink>
+ </div>
+ <div className="display-inline-block text-middle">
+ <div className="overview-domain-measure-value">
+ <DrilldownLink component={this.props.component.key} metric="duplicated_lines_density">
+ {formatMeasure(this.props.measures['duplicated_lines_density'], 'PERCENT')}
+ </DrilldownLink>
+ </div>
+ <div className="overview-domain-measure-label">{getMetricName('duplications')}</div>
+ </div>
</Measure>
+
{this.renderDuplicatedBlocks()}
</MeasuresList>
{this.renderTimeline('before')}
<DomainPanel domain="issues">
<DomainNutshell>
<MeasuresList>
- <Measure>
- <DrilldownLink component={this.props.component.key} metric="sqale_rating">
- <Rating value={this.props.measures['sqale_rating']}/>
- </DrilldownLink>
- </Measure>
- <Measure label={getMetricName('debt')}>
- <IssuesLink component={this.props.component.key} params={{ resolved: 'false', facetMode: 'debt' }}>
- {formatMeasure(this.props.measures.debt, 'SHORT_WORK_DUR')}
- </IssuesLink>
+
+ <Measure composite={true}>
+ <div className="display-inline-block text-middle big-spacer-right">
+ <div className="overview-domain-measure-value">
+ <DrilldownLink component={this.props.component.key} metric="sqale_rating">
+ <Rating value={this.props.measures['sqale_rating']}/>
+ </DrilldownLink>
+ </div>
+ </div>
+ <div className="display-inline-block text-middle">
+ <div className="overview-domain-measure-value">
+ <IssuesLink component={this.props.component.key}
+ params={{ resolved: 'false', facetMode: 'debt' }}>
+ {formatMeasure(this.props.measures.debt, 'SHORT_WORK_DUR')}
+ </IssuesLink>
+ </div>
+ <div className="overview-domain-measure-label">{getMetricName('debt')}</div>
+ </div>
</Measure>
+
<Measure label={getMetricName('issues')}>
<IssuesLink component={this.props.component.key} params={{ resolved: 'false' }}>
{formatMeasure(this.props.measures.issues, 'SHORT_INT')}
z-index: 2;
display: flex;
flex: 1;
- justify-content: space-around;
align-items: center;
+ padding: 0 10%;
}
.overview-domain-measures + .overview-domain-measures {
}
.overview-domain-measure {
+ flex: 1;
+}
+
+.overview-domain-measure + .overview-domain-measure {
+ padding-left: 15%;
}
.overview-domain-measure-value {
line-height: 1;
font-size: 36px;
font-weight: 300;
- text-align: center;
+
+ .overview-domain-leak & { text-align: center; }
}
.overview-domain-measure-label {
margin-top: 10px;
- text-align: center;
+
+ .overview-domain-leak & { text-align: center; }
}
.overview-domain-timeline {