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

align estimated time column

ulferts1999fb6fb231
diff --git a/app/assets/stylesheets/content/work_packages/inplace_editing/_display_fields.sass b/app/assets/stylesheets/content/work_packages/inplace_editing/_display_fields.sass
index a0bb1ce8285..e41ed486a57 100644
--- a/app/assets/stylesheets/content/work_packages/inplace_editing/_display_fields.sass
+++ b/app/assets/stylesheets/content/work_packages/inplace_editing/_display_fields.sass
@@ -26,6 +26,13 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
+@mixin wp-table--time-values
+ display: inline-block
+ // deduct 10px to avoid ellipsis kicking in
+ width: calc(100% - 10px)
+ text-align: center
+ padding: 0
+
// READ value of edit fields
.inline-edit--display-field
display: inline-block
@@ -48,11 +55,7 @@
.wp-table--cell-container &
.-actual-value,
.-derived-value
- display: inline-block
- width: 48%
-
- .-derived-value:not(.-with-actual-value)
- margin-left: 48%
+ @include wp-table--time-values
.-actual-value
text-align: right
@@ -63,6 +66,13 @@
font-style: italic
font-weight: bold
+// Sums in wp table
+.wp-table--sum-container
+ .split-time-field
+ .-actual-value,
+ .-derived-value
+ @include wp-table--time-values
+
// Editable fields cursor
.inline-edit--display-field.-editable
cursor: text
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 17274691834..1221bad78d4 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
@@ -101,6 +101,7 @@ export class WorkPackageTableSumsRowController implements AfterViewInit {
// build
columns.forEach((column, i:number) => {
const td = document.createElement('td');
+ td.classList.add('wp-table--sum-container');
const div = this.renderContent(resource.totalSums!, column.id, schema[column.id]);
if (i === 0) {