[PATCH 2/9] ui: Higher density of patches

Stephen Finucane stephen.finucane at intel.com
Thu Mar 31 08:04:27 AEDT 2016


THe Bootstrap'ification of Patchwork signficantly reduced the
information density of the patch list page, but this results in less
patches per page. Resolve this by reducing the padding on each row.

Signed-off-by: Stephen Finucane <stephen.finucane at intel.com>
---
 htdocs/css/style.css                          | 11 +++++++++++
 patchwork/templates/patchwork/patch-list.html |  2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/htdocs/css/style.css b/htdocs/css/style.css
index e5c6600..0ec11e0 100644
--- a/htdocs/css/style.css
+++ b/htdocs/css/style.css
@@ -410,6 +410,17 @@ table.horizontal td, table.horizontal th {
 table.vertical {
 	border-collapse: collapse;
 }
+
+/* per suggestions here: https://github.com/twbs/bootstrap/issues/12238 */
+.table-extra-condensed > thead > tr > th,
+.table-extra-condensed > tbody > tr > th,
+.table-extra-condensed > tfoot > tr > th,
+.table-extra-condensed > thead > tr > td,
+.table-extra-condensed > tbody > tr > td,
+.table-extra-condensed > tfoot > tr > td {
+	padding: 2px;
+}
+
 table.vertical th {
 	background: #222;
 	color: #999;
diff --git a/patchwork/templates/patchwork/patch-list.html b/patchwork/templates/patchwork/patch-list.html
index afa3621..37eab86 100644
--- a/patchwork/templates/patchwork/patch-list.html
+++ b/patchwork/templates/patchwork/patch-list.html
@@ -55,7 +55,7 @@ $(document).ready(function() {
 {% csrf_token %}
 <input type="hidden" name="form" value="patchlistform"/>
 <input type="hidden" name="project" value="{{project.id}}"/>
-<table id="patchlist" class="table table-hover table-condensed pw-list"
+<table id="patchlist" class="table table-hover table-extra-condensed table-striped pw-list"
        data-toggle="checkboxes" data-range="true">
  <thead>
   <tr>
-- 
2.0.0



More information about the Patchwork mailing list