From 7851661f25d2588d040320f36613f08b3a5922b1 Mon Sep 17 00:00:00 2001 From: Tristan Olive Date: Thu, 4 Jun 2015 17:48:15 -0400 Subject: [PATCH] Added wrapping of task names in task lists when names are long (DBOINCP-29) --- .../boinc/themes/boinc/css/views-styles.css | 15 +++++++++++++++ ...s-view-field--boinc-host-tasks-all--id.tpl.php | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/drupal/sites/default/boinc/themes/boinc/css/views-styles.css b/drupal/sites/default/boinc/themes/boinc/css/views-styles.css index 91bb59e55e..035b6fb5cc 100644 --- a/drupal/sites/default/boinc/themes/boinc/css/views-styles.css +++ b/drupal/sites/default/boinc/themes/boinc/css/views-styles.css @@ -142,6 +142,21 @@ } +/** + * Computer and task lists + */ +.views-table .views-field-expavg-credit, +.views-table .views-field-total-credit, +.views-table .views-field-elapsed-time, +.views-table .views-field-cpu-time, +.views-table .views-field-claimed-credit-1, +.views-table .views-field-granted-credit { + text-align: right; +} +.views-table .views-field .task-name { + word-break: break-all; +} + /** * Friends block */ diff --git a/drupal/sites/default/boinc/themes/boinc/templates/views-view-field--boinc-host-tasks-all--id.tpl.php b/drupal/sites/default/boinc/themes/boinc/templates/views-view-field--boinc-host-tasks-all--id.tpl.php index 49df3df3b7..52b522a9fc 100644 --- a/drupal/sites/default/boinc/themes/boinc/templates/views-view-field--boinc-host-tasks-all--id.tpl.php +++ b/drupal/sites/default/boinc/themes/boinc/templates/views-view-field--boinc-host-tasks-all--id.tpl.php @@ -19,6 +19,6 @@ * the view is modified. */ ?> - + result_name, "task/{$row->id}"); ?> \ No newline at end of file