From 176d4e8033db35a95c52f64026a294e2f8f1c87a Mon Sep 17 00:00:00 2001 From: Aleix Suau Date: Wed, 26 Aug 2020 18:31:42 +0200 Subject: [PATCH] Working with a icon-void and margin-left on the column header --- .../display/field-types/date-display-field.module.ts | 4 +--- frontend/src/global_styles/content/_table.sass | 2 ++ .../work_packages/inplace_editing/_display_fields.sass | 8 ++++++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/modules/fields/display/field-types/date-display-field.module.ts b/frontend/src/app/modules/fields/display/field-types/date-display-field.module.ts index f3408f61a6..cd4578e08a 100644 --- a/frontend/src/app/modules/fields/display/field-types/date-display-field.module.ts +++ b/frontend/src/app/modules/fields/display/field-types/date-display-field.module.ts @@ -44,9 +44,7 @@ export class DateDisplayField extends HighlightableDisplayField { const schedulingIcon = document.createElement('span'); schedulingIcon.classList.add('icon-context'); - if (this.resource.scheduleManually) { - schedulingIcon.classList.add('icon-pin'); - } + schedulingIcon.classList.add(this.resource.scheduleManually ? 'icon-pin' : 'icon-void'); element.prepend(schedulingIcon); } diff --git a/frontend/src/global_styles/content/_table.sass b/frontend/src/global_styles/content/_table.sass index ab114006c6..3abbfea871 100644 --- a/frontend/src/global_styles/content/_table.sass +++ b/frontend/src/global_styles/content/_table.sass @@ -260,6 +260,8 @@ thead.-sticky th flex: 0 0 0 padding-left: 15px + #startDate + margin-left: 24px .generic-table--sort-header-outer .dropdown-indicator diff --git a/frontend/src/global_styles/content/work_packages/inplace_editing/_display_fields.sass b/frontend/src/global_styles/content/work_packages/inplace_editing/_display_fields.sass index 93d5ee9aca..8f9aafcc3b 100644 --- a/frontend/src/global_styles/content/work_packages/inplace_editing/_display_fields.sass +++ b/frontend/src/global_styles/content/work_packages/inplace_editing/_display_fields.sass @@ -100,6 +100,14 @@ .-placeholder @include wp-table--placeholder-time-values +.wp-table--cell-container .startDate .icon-void + width: 24px + display: inline-block + +.wp-table--cell-container .dueDate .icon-pin + display: none + + // Sums in wp table .wp-table--sum-container.split-time-field .-actual-value