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 baseline items

Oliver Günther01e69a41620f
diff --git a/frontend/src/app/features/work-packages/components/wp-table/wp-table.component.html b/frontend/src/app/features/work-packages/components/wp-table/wp-table.component.html
index 8a717a72df0..18d7fd62932 100644
--- a/frontend/src/app/features/work-packages/components/wp-table/wp-table.component.html
+++ b/frontend/src/app/features/work-packages/components/wp-table/wp-table.component.html
@@ -25,8 +25,8 @@
</div>
</th>
<th *ngIf="baselineEnabled" class="wp-table--baseline-th -short hide-when-print">
- <div class="generic-table--empty-header">
- <op-icon icon-classes="icon-baseline"></op-icon>
+ <div class="generic-table--empty-header op-table-baseline--column-header">
+ <span class="spot-icon spot-icon_baseline"></span>
</div>
</th>
<th *ngFor="let column of columns; trackBy:trackByHref"
diff --git a/frontend/src/global_styles/layout/work_packages/_table_baseline.sass b/frontend/src/global_styles/layout/work_packages/_table_baseline.sass
index 553fc4aa0d8..7cae601a483 100644
--- a/frontend/src/global_styles/layout/work_packages/_table_baseline.sass
+++ b/frontend/src/global_styles/layout/work_packages/_table_baseline.sass
@@ -56,5 +56,11 @@
// Ensure items are not taking full width
align-items: flex-start
- .spot-icon
- vertical-align: middle
+ &--column-header
+ display: flex
+ align-items: center
+
+ .op-table-baseline--column-cell .spot-icon
+ display: flex
+ align-items: center
+ justify-items: center