diff --git a/app/assets/stylesheets/reporting/reporting.css.sass b/app/assets/stylesheets/reporting/reporting.css.sass index 35edfa3ce6..49fd50d6bc 100644 --- a/app/assets/stylesheets/reporting/reporting.css.sass +++ b/app/assets/stylesheets/reporting/reporting.css.sass @@ -20,3 +20,9 @@ &:after @include sort-icons content: "\e09f" + +#result-table .generic-table--results-container tfoot + td + width: 150px + .generic-table--footer-outer + width: inherit \ No newline at end of file diff --git a/lib/widget/entry_table.rb b/lib/widget/entry_table.rb index f73c2ddad9..94927b45f7 100644 --- a/lib/widget/entry_table.rb +++ b/lib/widget/entry_table.rb @@ -96,20 +96,20 @@ class Widget::Table::EntryTable < Widget::Table content_tag :tfoot do content_tag :tr do if show_result(@subject, 0) != show_result(@subject) - concat content_tag(:th, '', colspan: FIELDS.size) - concat content_tag(:th) { + concat content_tag(:td, '', colspan: FIELDS.size) + concat content_tag(:td) { concat content_tag(:div, show_result(@subject), class: 'inner generic-table--footer-outer') } - concat content_tag(:th) { + concat content_tag(:td) { concat content_tag(:div, show_result(@subject, 0), class: 'result generic-table--footer-outer') } else - concat content_tag(:th, '', colspan: FIELDS.size + 1) - concat content_tag(:th) { + concat content_tag(:td, '', colspan: FIELDS.size + 1) + concat content_tag(:td) { concat content_tag(:div, show_result(@subject), class: 'result generic-table--footer-outer')