]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
ui: Don't allow to the date to wrap
authorDamien Lespiau <damien.lespiau@intel.com>
Mon, 26 Oct 2015 08:17:09 +0000 (08:17 +0000)
committerStephen Finucane <stephen.finucane@intel.com>
Mon, 8 Feb 2016 19:03:33 +0000 (19:03 +0000)
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@intel.com>
Acked-by: Stephen Finucane <stephen.finucane@intel.com>
patchwork/templates/patchwork/patch-list.html

index bcbb3b92d3c6eeb154ed8a986919af87dc60766f..00cbb52edfc9611236cc8c587d540695ff63c66e 100644 (file)
@@ -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>