diff mbox

[2/9] ui: Higher density of patches

Message ID 1459371874-12676-3-git-send-email-stephen.finucane@intel.com
State Accepted
Headers show

Commit Message

Stephen Finucane March 30, 2016, 9:04 p.m. UTC
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@intel.com>
---
 htdocs/css/style.css                          | 11 +++++++++++
 patchwork/templates/patchwork/patch-list.html |  2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)

Comments

Stephen Finucane April 1, 2016, 12:26 p.m. UTC | #1
On 30 Mar 22:04, Stephen Finucane wrote:
> 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@intel.com>

Merged.
diff mbox

Patch

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>