[PATCH 01/19] ui: Don't allow to the date to wrap

Stephen Finucane stephen.finucane at intel.com
Thu Feb 4 08:31:36 AEDT 2016

From: Damien Lespiau <damien.lespiau at intel.com>

When rendered on smaller screens, the mininum column size for the date
was reached and the text was wrapping. We can force it to not wrap with
white-space: nowrap; and bootstrap already includes a convenient
text-nowrap class.

v2: Extend the use of 'text-nowrap' to existing classes

Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
Acked-by: Stephen Finucane <stephen.finucane at intel.com>
 patchwork/templates/patchwork/patch-list.html | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/patchwork/templates/patchwork/patch-list.html b/patchwork/templates/patchwork/patch-list.html
index bcbb3b9..00cbb52 100644
--- a/patchwork/templates/patchwork/patch-list.html
+++ b/patchwork/templates/patchwork/patch-list.html
@@ -157,9 +157,9 @@ $(document).ready(function() {
     {% endif %}
    <td><a href="{% url 'patch-detail' patch_id=patch.id %}"
      >{{ patch.name|default:"[no subject]"|truncatechars:100 }}</a></td>
-   <td style="white-space: nowrap;">{{ patch|patch_tags }}</td>
-   <td style="white-space: nowrap;">{{ patch|patch_checks }}</td>
-   <td>{{ patch.date|date:"Y-m-d" }}</td>
+   <td class="text-nowrap">{{ patch|patch_tags }}</td>
+   <td class="text-nowrap">{{ patch|patch_checks }}</td>
+   <td class="text-nowrap">{{ patch.date|date:"Y-m-d" }}</td>
    <td>{{ patch.submitter|personify:project }}</td>
    <td>{{ patch.delegate.username }}</td>
    <td>{{ patch.state }}</td>

More information about the Patchwork mailing list