<DrilldownLink branch={this.props.branch} component={this.props.component.key} metric="ncloc">
{formatMeasure(ncloc.value, 'SHORT_INT')}
</DrilldownLink>
- <div className="overview-domain-measure-label text-muted">{getMetricName('ncloc')}</div>
+ <div className="spacer-top text-muted">{getMetricName('ncloc')}</div>
</div>
);
measure => measure.metric.key === 'ncloc_language_distribution'
);
+ const className =
+ this.props.component.qualifier === 'TRK' ? 'overview-meta-size-lang-dist' : 'big-spacer-top';
+
return languageDistribution ? (
- <div id="overview-language-distribution" className="overview-meta-size-lang-dist">
+ <div id="overview-language-distribution" className={className}>
<LanguageDistributionContainer distribution={languageDistribution.value} width={160} />
</div>
) : null;
const projects = this.props.measures.find(measure => measure.metric.key === 'projects');
return projects ? (
- <div id="overview-projects" className="overview-meta-size-ncloc is-half-width bordered-left">
+ <div id="overview-projects" className="overview-meta-size-ncloc is-half-width">
<DrilldownLink
branch={this.props.branch}
component={this.props.component.key}
metric="projects">
{formatMeasure(projects.value, 'SHORT_INT')}
</DrilldownLink>
- <div className="overview-domain-measure-label text-muted">
- {translate('metric.projects.name')}
- </div>
+ <div className="spacer-top text-muted">{translate('metric.projects.name')}</div>
</div>
) : null;
};
return (
<div id="overview-size" className="overview-meta-card">
+ {this.props.component.qualifier === 'APP' && this.renderProjects()}
{this.renderLoC(ncloc)}
- {this.props.component.qualifier === 'APP' ? (
- this.renderProjects()
- ) : (
- this.renderLoCDistribution()
- )}
+ {this.renderLoCDistribution()}
</div>
);
}
render() {
return (
- <div className="huge-spacer-bottom">
- <header className="page-header">
- <h3 className="page-title">{translate('project_activity.page')}</h3>
- </header>
+ <div className="big-spacer-bottom">
+ <h4>{translate('project_activity.page')}</h4>
{this.state.loading ? (
<i className="spinner" />
);
}
- renderHeader = () => (
- <header className="page-header">
- <h3 className="page-title">{translate('report.page')}</h3>
- </header>
- );
+ renderHeader = () => <h4>{translate('report.page')}</h4>;
render() {
const { component } = this.props;
const nclocDistribution = measures['ncloc_language_distribution'];
return (
- <section id="portfolio-summary" className="huge-spacer-bottom">
+ <section id="portfolio-summary" className="big-spacer-bottom">
{component.description && <div className="big-spacer-bottom">{component.description}</div>}
<ul className="portfolio-grid">
/>
</Link>
</div>
- {translate('projects')}
+ <div className="spacer-top text-muted">{translate('projects')}</div>
</li>
<li>
<div className="portfolio-measure-secondary-value">
<Measure measure={{ metric: { key: 'ncloc', type: 'SHORT_INT' }, value: ncloc }} />
</Link>
</div>
- {translate('metric.ncloc.name')}
+ <div className="spacer-top text-muted">{translate('metric.ncloc.name')}</div>
</li>
</ul>
{nclocDistribution && (
- <div className="huge-spacer-top">
+ <div className="big-spacer-top">
<LanguageDistributionContainer distribution={nclocDistribution} width={260} />
</div>
)}
exports[`renders 1`] = `
<div
- className="huge-spacer-bottom"
+ className="big-spacer-bottom"
>
- <header
- className="page-header"
- >
- <h3
- className="page-title"
- >
- project_activity.page
- </h3>
- </header>
+ <h4>
+ project_activity.page
+ </h4>
<PreviewGraph
history={
Object {
exports[`renders 1`] = `
<div>
- <header
- className="page-header"
- >
- <h3
- className="page-title"
- >
- report.page
- </h3>
- </header>
+ <h4>
+ report.page
+ </h4>
<i
className="spinner"
/>
exports[`renders 2`] = `
<div>
- <header
- className="page-header"
- >
- <h3
- className="page-title"
- >
- report.page
- </h3>
- </header>
+ <h4>
+ report.page
+ </h4>
<div
className="js-report-can-download"
>
exports[`renders 1`] = `
<section
- className="huge-spacer-bottom"
+ className="big-spacer-bottom"
id="portfolio-summary"
>
<div
/>
</Link>
</div>
- projects
+ <div
+ className="spacer-top text-muted"
+ >
+ projects
+ </div>
</li>
<li>
<div
/>
</Link>
</div>
- metric.ncloc.name
+ <div
+ className="spacer-top text-muted"
+ >
+ metric.ncloc.name
+ </div>
</li>
</ul>
<div
- className="huge-spacer-top"
+ className="big-spacer-top"
>
<Connect(LanguageDistribution)
distribution="java=13;js=17"
.portfolio-measure-secondary-value {
- line-height: 1.4;
- margin-bottom: 4px;
- font-size: 24px;
+ line-height: 24px;
+ font-size: 18px;
font-weight: 300;
}
position: relative;
z-index: 10;
display: flex;
- height: 80px;
justify-content: space-around;
align-items: center;
}
.huge-spacer-top {
margin-top: 40px;
}
-.huge-spacer-bottom {
- margin-bottom: 40px;
-}
.huge-spacer-left {
margin-left: 40px;
}