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

Show border only around the input on hover, leave out the icon

Aleix Suaub3fd0f67770e
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 cd4578e08ac..f3408f61a68 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,7 +44,9 @@ export class DateDisplayField extends HighlightableDisplayField {
const schedulingIcon = document.createElement('span');
schedulingIcon.classList.add('icon-context');
- schedulingIcon.classList.add(this.resource.scheduleManually ? 'icon-pin' : 'icon-void');
+ if (this.resource.scheduleManually) {
+ schedulingIcon.classList.add('icon-pin');
+ }
element.prepend(schedulingIcon);
}
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 8f9aafcc3b6..feb865acd0d 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,13 +100,19 @@
.-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
+.wp-table--cell-container.startDate
+ padding-left: 24px
+
+ .icon-context
+ position: relative
+
+ .icon-pin:before
+ position: absolute
+ left: -24px
+ top: -8px
// Sums in wp table
.wp-table--sum-container.split-time-field