Remove fixed column widths to improve responsiveness of tables
This commit is contained in:
parent
5600581b49
commit
e43821dc69
28
stoptime.rb
28
stoptime.rb
|
@ -1841,9 +1841,6 @@ module StopTime::Views
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
table.table.table_condensed do
|
table.table.table_condensed do
|
||||||
col.task
|
|
||||||
col.hours
|
|
||||||
col.amount
|
|
||||||
@active_tasks[customer].each do |task|
|
@active_tasks[customer].each do |task|
|
||||||
tr do
|
tr do
|
||||||
summary = task.summary
|
summary = task.summary
|
||||||
|
@ -1870,12 +1867,10 @@ module StopTime::Views
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
div.row do
|
div.row do
|
||||||
div.col_md_12 do
|
div.col_md_12 do
|
||||||
table.table.table_condensed.grand_total do
|
table.table.table_condensed.grand_total do
|
||||||
col
|
|
||||||
col.total_hours
|
|
||||||
col.total_amount
|
|
||||||
tr do
|
tr do
|
||||||
td.col_md_10.col_xs_6 { big { strong "Grand total" } }
|
td.col_md_10.col_xs_6 { big { strong "Grand total" } }
|
||||||
td.col_md_1.col_xs_3.text_right do
|
td.col_md_1.col_xs_3.text_right do
|
||||||
|
@ -2027,11 +2022,6 @@ module StopTime::Views
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
table.table.table_striped.table_condensed do
|
table.table.table_striped.table_condensed do
|
||||||
col.name
|
|
||||||
col.short_name
|
|
||||||
col.address
|
|
||||||
col.email
|
|
||||||
col.phone
|
|
||||||
thead do
|
thead do
|
||||||
tr do
|
tr do
|
||||||
th.col_md_2.col_xs_5 "Name"
|
th.col_md_2.col_xs_5 "Name"
|
||||||
|
@ -2435,10 +2425,6 @@ module StopTime::Views
|
||||||
end
|
end
|
||||||
div.col_md_6 do
|
div.col_md_6 do
|
||||||
table.table.table_condensed.table_striped do
|
table.table.table_condensed.table_striped do
|
||||||
col.task
|
|
||||||
col.reg_hours
|
|
||||||
col.hourly_rate
|
|
||||||
col.amount
|
|
||||||
thead do
|
thead do
|
||||||
tr do
|
tr do
|
||||||
th.col_md_6 { "Project/Task" }
|
th.col_md_6 { "Project/Task" }
|
||||||
|
@ -2571,13 +2557,6 @@ module StopTime::Views
|
||||||
unless @hourly_rate_tasks.empty?
|
unless @hourly_rate_tasks.empty?
|
||||||
h3 "Projects/Tasks with an Hourly Rate"
|
h3 "Projects/Tasks with an Hourly Rate"
|
||||||
table.table.table_striped.table_condensed do
|
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
|
thead do
|
||||||
tr do
|
tr do
|
||||||
th.col_md_1 "Bill?"
|
th.col_md_1 "Bill?"
|
||||||
|
@ -2839,11 +2818,6 @@ module StopTime::Views
|
||||||
p "None found!"
|
p "None found!"
|
||||||
else
|
else
|
||||||
table.table.table_striped.table_condensed do
|
table.table.table_striped.table_condensed do
|
||||||
col.number
|
|
||||||
col.date
|
|
||||||
col.period
|
|
||||||
col.amount
|
|
||||||
col.flag
|
|
||||||
thead do
|
thead do
|
||||||
tr do
|
tr do
|
||||||
th.col_md_2.col_xs_3 "Number"
|
th.col_md_2.col_xs_3 "Number"
|
||||||
|
|
|
@ -38,35 +38,6 @@ footer
|
||||||
table
|
table
|
||||||
table-layout: fixed
|
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
|
td
|
||||||
text-overflow: ellipsis
|
text-overflow: ellipsis
|
||||||
white-space: nowrap
|
white-space: nowrap
|
||||||
|
|
Loading…
Reference in New Issue