From e43821dc69fd709fc34b5ce9ee633cb4c1e6a933 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Sat, 20 Jun 2015 18:22:44 +0200 Subject: [PATCH] Remove fixed column widths to improve responsiveness of tables --- stoptime.rb | 28 +--------------------------- templates/sass/style.sass | 29 ----------------------------- 2 files changed, 1 insertion(+), 56 deletions(-) diff --git a/stoptime.rb b/stoptime.rb index 8657cf4..e49338f 100644 --- a/stoptime.rb +++ b/stoptime.rb @@ -1841,9 +1841,6 @@ module StopTime::Views end else table.table.table_condensed do - col.task - col.hours - col.amount @active_tasks[customer].each do |task| tr do summary = task.summary @@ -1870,12 +1867,10 @@ module StopTime::Views end end end + div.row do div.col_md_12 do table.table.table_condensed.grand_total do - col - col.total_hours - col.total_amount tr do td.col_md_10.col_xs_6 { big { strong "Grand total" } } td.col_md_1.col_xs_3.text_right do @@ -2027,11 +2022,6 @@ module StopTime::Views end else table.table.table_striped.table_condensed do - col.name - col.short_name - col.address - col.email - col.phone thead do tr do th.col_md_2.col_xs_5 "Name" @@ -2435,10 +2425,6 @@ module StopTime::Views end div.col_md_6 do table.table.table_condensed.table_striped do - col.task - col.reg_hours - col.hourly_rate - col.amount thead do tr do th.col_md_6 { "Project/Task" } @@ -2571,13 +2557,6 @@ module StopTime::Views unless @hourly_rate_tasks.empty? h3 "Projects/Tasks with an Hourly Rate" table.table.table_striped.table_condensed do - col.flag - col.date - col.start_time - col.end_time - col.comment - col.hours - col.amount thead do tr do th.col_md_1 "Bill?" @@ -2839,11 +2818,6 @@ module StopTime::Views p "None found!" else table.table.table_striped.table_condensed do - col.number - col.date - col.period - col.amount - col.flag thead do tr do th.col_md_2.col_xs_3 "Number" diff --git a/templates/sass/style.sass b/templates/sass/style.sass index 6fe40c7..8ba9dc3 100644 --- a/templates/sass/style.sass +++ b/templates/sass/style.sass @@ -38,35 +38,6 @@ footer table table-layout: fixed - col.amount, col.hours, col.hourly_rate - width: 85px - col.total_hours, col.total_amount - width: 130px - col.reg_hours - width: 90px - col.flag - width: 30px - col.date - width: 100px - col.start_time, col.end_time - width: 60px - col.customer_short - width: 120px - col.customer, col.name - width: 160px - col.task, col.comment - width: 200px - col.short_name, col.phone - width: 120px - col.address - width: 250px - col.email, col.period - width: 170px - col.task_list - width: 330px - col.number - width: 70px - td text-overflow: ellipsis white-space: nowrap