Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

remove outdated styles

ulferts0c5aeb4cdf95
diff --git a/app/assets/stylesheets/content/_tables.sass b/app/assets/stylesheets/content/_tables.sass
index ce07987f56c..b83caa73cfc 100644
--- a/app/assets/stylesheets/content/_tables.sass
+++ b/app/assets/stylesheets/content/_tables.sass
@@ -104,18 +104,6 @@ table
background: none
tr
- &.issue
- white-space: nowrap
- &.sum
- font-weight: bold
- background-color: #f6f7f8
- td
- &.category
- white-space: normal
- &.subject
- text-align: left
- @include dot_border_width_style
-
div.expander
cursor: pointer
float: left
diff --git a/frontend/src/app/components/wp-table/wp-table-sums-row/wp-table-sums-row.directive.ts b/frontend/src/app/components/wp-table/wp-table-sums-row/wp-table-sums-row.directive.ts
index 1221bad78d4..611263ff29e 100644
--- a/frontend/src/app/components/wp-table/wp-table-sums-row/wp-table-sums-row.directive.ts
+++ b/frontend/src/app/components/wp-table/wp-table-sums-row/wp-table-sums-row.directive.ts
@@ -96,8 +96,6 @@ export class WorkPackageTableSumsRowController implements AfterViewInit {
}
private render(columns:QueryColumn[], resource:WorkPackageCollectionResource, schema:SchemaResource) {
- this.elementRef.nativeElement.classList.add('sum', 'group', 'all', 'issue', 'work_package');
-
// build
columns.forEach((column, i:number) => {
const td = document.createElement('td');
diff --git a/spec/features/work_packages/index_sums_spec.rb b/spec/features/work_packages/index_sums_spec.rb
index 734e8be698d..1cb631847f9 100644
--- a/spec/features/work_packages/index_sums_spec.rb
+++ b/spec/features/work_packages/index_sums_spec.rb
@@ -64,18 +64,14 @@ RSpec.feature 'Work package index sums', js: true do
wp_table.expect_work_package_listed work_package_1, work_package_2
- within('.sum.group.all') do
- expect(page).to have_content('Sum')
- expect(page).to have_content('25')
- end
+ expect(page).to have_selector('.wp-table--sum-container', text: 'Sum')
+ expect(page).to have_selector('.wp-table--sum-container', text: '25')
# Update the sum
edit_field = wp_table.edit_field(work_package_1, :estimatedTime)
edit_field.update '20'
- within('.sum.group.all') do
- expect(page).to have_content('Sum')
- expect(page).to have_content('35')
- end
+ expect(page).to have_selector('.wp-table--sum-container', text: 'Sum')
+ expect(page).to have_selector('.wp-table--sum-container', text: '35')
end
end