Christopher Johnson (WMDE) has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/193805

Change subject: fixes task table break for long task names
......................................................................

fixes task table break for long task names

Uses overflow hide with ellipsis and fixed table width

Bug: T89876
Change-Id: Iec2c990aedabaa060c2dd016a34ee93b2c70ab0a
---
M rsrc/behavior-tasks-table.js
M rsrc/dataTables.css
M src/celerity/map.php
3 files changed, 15 insertions(+), 7 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/phabricator/extensions/Sprint 
refs/changes/05/193805/1

diff --git a/rsrc/behavior-tasks-table.js b/rsrc/behavior-tasks-table.js
index 9d6c51c..3cd8a44 100644
--- a/rsrc/behavior-tasks-table.js
+++ b/rsrc/behavior-tasks-table.js
@@ -7,12 +7,16 @@
         $('#tasks-list').DataTable({
             "order": [[ 8, "desc" ]],
             "aoColumnDefs": [
+                { "aTargets": [ 0 ], "sWidth": "50%" },
                 { "bVisible": false, "aTargets": [ 1 ] },
-                { "iDataSort": 1, "aTargets": [ 2 ] },
+                { "iDataSort": 1, "aTargets": [ 2 ], "sWidth": "8%" },
                 { "bVisible": false, "aTargets": [ 3 ] },
-                { "iDataSort": 3, "aTargets": [ 4 ] },
+                { "iDataSort": 3, "aTargets": [ 4 ], "sWidth": "8%" },
+                { "aTargets": [ 5 ], "sWidth": "8%" },
                 { "bVisible": false, "aTargets": [ 6 ] },
-                { "iDataSort": 6, "aTargets": [ 7 ] }
+                { "iDataSort": 6, "aTargets": [ 7 ], "sWidth": "8%" },
+                { "aTargets": [ 8 ], "sWidth": "8%" },
+                { "aTargets": [ 9 ], "sWidth": "10%" }
             ]
         });
     });
diff --git a/rsrc/dataTables.css b/rsrc/dataTables.css
index abba728..72c2fa4 100644
--- a/rsrc/dataTables.css
+++ b/rsrc/dataTables.css
@@ -7,6 +7,7 @@
     clear: both;
     border-collapse: separate;
     border-spacing: 0;
+    table-layout: fixed;
     /*
      * Header and footer styles
      */
@@ -62,6 +63,9 @@
 table.dataTable tbody th,
 table.dataTable tbody td {
     padding: 8px 10px;
+    word-wrap:break-word;
+    overflow: hidden;
+    text-overflow: ellipsis;
 }
 table.dataTable.row-border tbody th, table.dataTable.row-border tbody td, 
table.dataTable.display tbody th, table.dataTable.display tbody td {
     border-top: 1px solid #dddddd;
diff --git a/src/celerity/map.php b/src/celerity/map.php
index d85b9b5..8fed33c 100644
--- a/src/celerity/map.php
+++ b/src/celerity/map.php
@@ -15,11 +15,11 @@
     'behavior-priority-pie.js' => 'f72c0144',
     'behavior-sprint-boards.js' => 'b2754b95',
     'behavior-sprint-table.js' => '01ed4a30',
-    'behavior-tasks-table.js' => '5f2084e5',
+    'behavior-tasks-table.js' => '273fdc8b',
     'c3.css' => '93642428',
     'c3.js' => '4b517cca',
     'd3.min.js' => '1595fbde',
-    'dataTables.css' => '29c5914e',
+    'dataTables.css' => '242f710e',
     'images/Screenshot-1.png' => '5e39aaad',
     'images/sort_asc.png' => 'b2a41175',
     'images/sort_both.png' => '3d11ec92',
@@ -34,7 +34,7 @@
     'c3-css' => '93642428',
     'd3' => '1595fbde',
     'dataTables' => 'faddf310',
-    'dataTables-css' => '29c5914e',
+    'dataTables-css' => '242f710e',
     'javelin-behavior-burndown-report-chart' => '631b0017',
     'javelin-behavior-c3-board-data-pie' => 'a1302bf1',
     'javelin-behavior-c3-chart' => '4bd6b4ca',
@@ -43,7 +43,7 @@
     'javelin-behavior-priority-pie' => 'f72c0144',
     'javelin-behavior-sprint-boards' => 'b2754b95',
     'javelin-behavior-sprint-table' => '01ed4a30',
-    'javelin-behavior-tasks-table' => '5f2084e5',
+    'javelin-behavior-tasks-table' => '273fdc8b',
     'jquery' => '75fa3fcc',
     'phui-workboard-view-css' => '24307748',
     'sprint-report-css' => 'f6959ade',

-- 
To view, visit https://gerrit.wikimedia.org/r/193805
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iec2c990aedabaa060c2dd016a34ee93b2c70ab0a
Gerrit-PatchSet: 1
Gerrit-Project: phabricator/extensions/Sprint
Gerrit-Branch: master
Gerrit-Owner: Christopher Johnson (WMDE) <christopher.john...@wikimedia.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to