From fd6ac68c0b1136182b5d713ec88ea94e26c4a76d Mon Sep 17 00:00:00 2001 From: James Moger Date: Thu, 29 Sep 2011 23:47:13 -0400 Subject: [PATCH] Adjusted Metric chart widths. Diff hunk header css tweak. --- resources/bootstrap.gb.css | 3 ++- src/com/gitblit/wicket/pages/MetricsPage.java | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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(); -- 2.39.5