From: James Moger Date: Fri, 30 Sep 2011 03:47:13 +0000 (-0400) Subject: Adjusted Metric chart widths. Diff hunk header css tweak. X-Git-Tag: v0.7.0~95^2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fd6ac68c0b1136182b5d713ec88ea94e26c4a76d;p=gitblit.git Adjusted Metric chart widths. Diff hunk header css tweak. --- diff --git a/resources/bootstrap.gb.css b/resources/bootstrap.gb.css index db91249b..2ea2b5c2 100644 --- a/resources/bootstrap.gb.css +++ b/resources/bootstrap.gb.css @@ -366,7 +366,8 @@ div.diff table th.header { } div.diff table td.hunk_header { - background-color: #dAe2e5 !important; + background-color: #dAe2e5 !important; + border-top: 1px solid #bac2c5; border-bottom: 1px solid #bac2c5; color: #555; } diff --git a/src/com/gitblit/wicket/pages/MetricsPage.java b/src/com/gitblit/wicket/pages/MetricsPage.java index 23dcd8ab..41c605cb 100644 --- a/src/com/gitblit/wicket/pages/MetricsPage.java +++ b/src/com/gitblit/wicket/pages/MetricsPage.java @@ -68,7 +68,7 @@ public class MetricsPage extends RepositoryPage { if ((metrics != null) && (metrics.size() > 0)) { IChartData data = WicketUtils.getChartData(metrics); - ChartProvider provider = new ChartProvider(new Dimension(500, 100), ChartType.LINE, + ChartProvider provider = new ChartProvider(new Dimension(400, 100), ChartType.LINE, data); ChartAxis dateAxis = new ChartAxis(ChartAxisType.BOTTOM); dateAxis.setLabels(new String[] { metrics.get(0).name, @@ -93,7 +93,7 @@ public class MetricsPage extends RepositoryPage { if ((metrics != null) && (metrics.size() > 0)) { IChartData data = WicketUtils.getChartData(metrics); - ChartProvider provider = new ChartProvider(new Dimension(500, 100), + ChartProvider provider = new ChartProvider(new Dimension(400, 100), ChartType.BAR_VERTICAL_SET, data); ChartAxis dateAxis = new ChartAxis(ChartAxisType.BOTTOM); List labels = new ArrayList();