Skip to content

The Unified and Autonomous Development Platform

css tunes

robin shinef2c38b66a6ac
diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/commit/RepoCommitsPage.html b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/commit/RepoCommitsPage.html
index b770050ca9..de915041b0 100644
--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/commit/RepoCommitsPage.html
+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/commit/RepoCommitsPage.html
@@ -16,11 +16,10 @@
<a wicket:id="codeLink" title="Browse code at this point" class="btn btn-xs btn-default"><span class="fa fa-code"></span></a>
</div>
</li>
- <li wicket:id="footer" class="footer">
- <a wicket:id="more" class="btn btn-default">More commits</a>
- <div wicket:id="noMore" class="alert alert-info">No more commits</div>
- <div wicket:id="tooMany" class="alert alert-warning">Too many commits to load</div>
- </li>
</ul>
+ <div wicket:id="footer" class="footer">
+ <a wicket:id="more" class="btn btn-default">More commits</a>
+ <div wicket:id="tooMany" class="alert alert-warning">Too many commits to load</div>
+ </div>
</div>
</wicket:extend>
diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/commit/RepoCommitsPage.java b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/commit/RepoCommitsPage.java
index 0c7026abcc..ca3d18f85b 100644
--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/commit/RepoCommitsPage.java
+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/commit/RepoCommitsPage.java
@@ -194,7 +194,7 @@ public class RepoCommitsPage extends RepositoryPage {
Component item = newCommitItem(commitsView.newChildId(), i);
commitsView.add(item);
target.add(item);
- builder.append(String.format("$('#repo-commits>ul>li.footer').before(\"<li id='%s'></li>\");",
+ builder.append(String.format("$('#repo-commits>ul').append(\"<li id='%s'></li>\");",
item.getMarkupId()));
}
target.prependJavaScript(builder);
@@ -210,15 +210,6 @@ public class RepoCommitsPage extends RepositoryPage {
setVisible(hasMore && state.step < MAX_STEPS);
}
- });
- footer.add(new WebMarkupContainer("noMore") {
-
- @Override
- protected void onConfigure() {
- super.onConfigure();
- setVisible(!hasMore);
- }
-
});
footer.add(new WebMarkupContainer("tooMany") {
diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/commit/repo-commits.css b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/commit/repo-commits.css
index 817c0f9deb..6c36a19bda 100644
--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/commit/repo-commits.css
+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/commit/repo-commits.css
@@ -34,20 +34,19 @@
#repo-commits li:hover {
background: #F7ECB9;
}
-#repo-commits li.footer {
- text-align: center;
-}
-#repo-commits li.footer:hover {
- background: inherit;
-}
#repo-commits .commit-message>.full {
margin-bottom: 4px;
}
-#repo-commits li.no-more {
- font-style: italic;
- font-size: 16px;
- text-align: center;
-}
#repo-commits .commit-message .detail {
margin-bottom: 8px;
}
+#repo-commits>ul {
+ margin-bottom: 0;
+}
+#repo-commits>.footer {
+ text-align: center;
+}
+#repo-commits>.footer>.alert, #repo-commits>.footer>.btn {
+ margin-top: 8px;
+ margin-bottom: 0;
+}