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

Fix alignment of text in project tables (#12090)

Yule2114a4634528
diff --git a/frontend/src/global_styles/content/_project_status.sass b/frontend/src/global_styles/content/_project_status.sass
index 2c2b5549a0e..da247baed96 100644
--- a/frontend/src/global_styles/content/_project_status.sass
+++ b/frontend/src/global_styles/content/_project_status.sass
@@ -70,6 +70,7 @@
.project-status--name
text-transform: uppercase
font-weight: bold
+
&.-not-set
color: var(--project-status-gray)
&.-off-track
@@ -92,4 +93,4 @@
color: lightgrey
.project-status--explanation
- margin-top: 9px
\ No newline at end of file
+ margin-top: 9px
diff --git a/frontend/src/global_styles/content/_table.sass b/frontend/src/global_styles/content/_table.sass
index a4a3b42edc1..07b09c113c4 100644
--- a/frontend/src/global_styles/content/_table.sass
+++ b/frontend/src/global_styles/content/_table.sass
@@ -167,13 +167,21 @@ table.generic-table
td:not(.-no-ellipsis)
@include text-shortener
+ .project td
+ > span,
+ > a
+ // Because of the way table-cell display works,
+ // the easiest way to properly center-align inline
+ // elements is to just push them down a pixel.
+ position: relative
+ top: 1px
+
td
max-width: 300px
text-align: left
line-height: 1.6
padding-top: 0.5rem
padding-bottom: 0.5rem
- vertical-align: top
&.form--td
vertical-align: middle