From: James Moger Date: Thu, 29 Nov 2012 22:11:58 +0000 (-0500) Subject: Tweak css of short commit id in log and history views X-Git-Tag: v1.2.0~59 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=87d72e9d7b175142f8de9856a0e2e497646eda2f;p=gitblit.git Tweak css of short commit id in log and history views --- diff --git a/resources/gitblit.css b/resources/gitblit.css index e5363c85..811b08a5 100644 --- a/resources/gitblit.css +++ b/resources/gitblit.css @@ -984,11 +984,15 @@ td.date { white-space: nowrap; } -span.sha1, span.sha1 a, span.sha1 a span, .commit_message { +span.sha1, span.sha1 a, span.sha1 a span, .commit_message, span.shortsha1 { font-family: consolas, monospace; font-size: 13px; } +span.shortsha1 { + font-size: 12px; +} + td.mode { text-align: right; font-family: monospace; diff --git a/src/com/gitblit/wicket/panels/HistoryPanel.html b/src/com/gitblit/wicket/panels/HistoryPanel.html index fed08076..811eeed1 100644 --- a/src/com/gitblit/wicket/panels/HistoryPanel.html +++ b/src/com/gitblit/wicket/panels/HistoryPanel.html @@ -20,7 +20,7 @@ [commit author]
[commit short message]
[commit refs]
- [hash label][hash link] + [hash label][hash link] [history links] diff --git a/src/com/gitblit/wicket/panels/HistoryPanel.java b/src/com/gitblit/wicket/panels/HistoryPanel.java index 152bbae6..0f586031 100644 --- a/src/com/gitblit/wicket/panels/HistoryPanel.java +++ b/src/com/gitblit/wicket/panels/HistoryPanel.java @@ -171,7 +171,7 @@ public class HistoryPanel extends BasePanel { LinkPanel commitHash = new LinkPanel("hashLink", null, entry.getName().substring(0, hashLen), TreePage.class, WicketUtils.newObjectParameter( repositoryName, entry.getName())); - WicketUtils.setCssClass(commitHash, "sha1"); + WicketUtils.setCssClass(commitHash, "shortsha1"); WicketUtils.setHtmlTooltip(commitHash, entry.getName()); item.add(commitHash); diff --git a/src/com/gitblit/wicket/panels/LogPanel.html b/src/com/gitblit/wicket/panels/LogPanel.html index d0770a35..2b2605ac 100644 --- a/src/com/gitblit/wicket/panels/LogPanel.html +++ b/src/com/gitblit/wicket/panels/LogPanel.html @@ -16,7 +16,7 @@ [commit author]
[commit short message]
[commit refs]
- [hash link] + [hash link] | diff --git a/src/com/gitblit/wicket/panels/LogPanel.java b/src/com/gitblit/wicket/panels/LogPanel.java index 0686dee6..05397642 100644 --- a/src/com/gitblit/wicket/panels/LogPanel.java +++ b/src/com/gitblit/wicket/panels/LogPanel.java @@ -131,7 +131,7 @@ public class LogPanel extends BasePanel { LinkPanel commitHash = new LinkPanel("hashLink", null, entry.getName().substring(0, hashLen), CommitPage.class, WicketUtils.newObjectParameter( repositoryName, entry.getName())); - WicketUtils.setCssClass(commitHash, "sha1"); + WicketUtils.setCssClass(commitHash, "shortsha1"); WicketUtils.setHtmlTooltip(commitHash, entry.getName()); item.add(commitHash);