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

[31027] Align editable and non-editable grid widget headers

Oliver Günther70f600cfc526
diff --git a/frontend/src/app/modules/grids/widgets/header/header.component.html b/frontend/src/app/modules/grids/widgets/header/header.component.html
index b0cee2c1694..3d14e7c409d 100644
--- a/frontend/src/app/modules/grids/widgets/header/header.component.html
+++ b/frontend/src/app/modules/grids/widgets/header/header.component.html
@@ -1,6 +1,6 @@
<h3 class="widget-box--header"
[ngClass]="{ '-editable': isRenameable }">
- <i class="icon-context"
+ <i class="widget-box--header-icon icon-context"
aria-hidden="true"
[ngClass]="iconClass"></i>
diff --git a/frontend/src/app/modules/grids/widgets/header/header.component.sass b/frontend/src/app/modules/grids/widgets/header/header.component.sass
index 047041a3deb..256bbfe126b 100644
--- a/frontend/src/app/modules/grids/widgets/header/header.component.sass
+++ b/frontend/src/app/modules/grids/widgets/header/header.component.sass
@@ -1,7 +1,14 @@
-.widget-box--header.-editable
- .icon-context
- padding-top: 5px
+.widget-box--header
+ margin-top: 5px
+ &.-editable
+ margin-top: 0
+
+ .widget-box--header-icon
+ padding-top: 5px
+
+.widget-box--header-icon
+ align-self: center
.widget-box--header-title
padding-right: 5px