From 7a5b78dbc6c3ad896bd07ad19aa8c9cb8fec11ac Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 9 Nov 2014 21:41:32 -0500 Subject: Improve css for tables --- app/Model/Project.php | 2 +- app/Template/app/index.php | 18 ++++++++--------- app/Template/task_table.php | 22 ++++++++++----------- assets/css/app.css | 47 +++++++++++++++++++++++++++++++++++++++++++++ assets/css/table.css | 47 +++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 115 insertions(+), 21 deletions(-) diff --git a/app/Model/Project.php b/app/Model/Project.php index ad64edcd..305e3f1e 100644 --- a/app/Model/Project.php +++ b/app/Model/Project.php @@ -105,7 +105,7 @@ class Project extends Base * @param string $direction Sorting direction * @return array Project properties */ - public function getSummary(array $project_ids, $status = self::ACTIVE, $order = 'last_modified', $direction = 'desc') + public function getSummary(array $project_ids, $status = self::ACTIVE, $order = 'name', $direction = 'asc') { if (empty($project_ids)) { return array(); diff --git a/app/Template/app/index.php b/app/Template/app/index.php index 1aa5819a..89550e05 100644 --- a/app/Template/app/index.php +++ b/app/Template/app/index.php @@ -18,11 +18,11 @@

- +
- - - + + + @@ -50,12 +50,12 @@

-
  
+
- - - - + + + + diff --git a/app/Template/task_table.php b/app/Template/task_table.php index fa04fa55..2f856661 100644 --- a/app/Template/task_table.php +++ b/app/Template/task_table.php @@ -1,14 +1,14 @@ -
  
+
- - - + + + - - - - - + + + + + @@ -35,11 +35,11 @@
- + - + diff --git a/assets/css/app.css b/assets/css/app.css index 08deefb7..a23fca2d 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -105,6 +105,53 @@ th a { th a:focus, th a:hover { text-decoration: underline; +} + +.table-fixed { + table-layout: fixed; + white-space: nowrap; +} + +.table-fixed td { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.column-5 { + width: 5%; +} + +.column-8 { + width: 7.5%; +} + +.column-10 { + width: 10%; +} + +.column-20 { + width: 20%; +} + +.column-30 { + width: 30%; +} + +.column-40 { + width: 40%; +} + +.column-50 { + width: 50%; +} + +.column-60 { + width: 60%; +} + +.column-70 { + width: 70%; }/* forms */ form { margin-bottom: 20px; diff --git a/assets/css/table.css b/assets/css/table.css index 008b4bbf..c5ddb4c0 100644 --- a/assets/css/table.css +++ b/assets/css/table.css @@ -41,4 +41,51 @@ th a { th a:focus, th a:hover { text-decoration: underline; +} + +.table-fixed { + table-layout: fixed; + white-space: nowrap; +} + +.table-fixed td { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.column-5 { + width: 5%; +} + +.column-8 { + width: 7.5%; +} + +.column-10 { + width: 10%; +} + +.column-20 { + width: 20%; +} + +.column-30 { + width: 30%; +} + +.column-40 { + width: 40%; +} + +.column-50 { + width: 50%; +} + +.column-60 { + width: 60%; +} + +.column-70 { + width: 70%; } \ No newline at end of file -- cgit v1.2.3