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 text content in tables at the top to avoid having to scroll to see content because one cell blows up the whole row

Henriette Dargea8ee9d3e7fb6
diff --git a/frontend/src/global_styles/content/_table.sass b/frontend/src/global_styles/content/_table.sass
index a59c824302b..36aa5d6f583 100644
--- a/frontend/src/global_styles/content/_table.sass
+++ b/frontend/src/global_styles/content/_table.sass
@@ -164,7 +164,7 @@ table.generic-table
line-height: 1.6
padding-top: 0.5rem
padding-bottom: 0.5rem
- vertical-align: middle
+ vertical-align: top
// Center input fields and select boxes vertically in tables
.form--field
@@ -213,9 +213,8 @@ table.generic-table
&.-no-highlighting
background-color: $body-background
- p
- padding: 0 8px
- margin: 0
+ .op-uc-p
+ @include text-shortener
// Enable sticky headers
diff --git a/frontend/src/global_styles/content/work_packages/_table_content.sass b/frontend/src/global_styles/content/work_packages/_table_content.sass
index 7fb6a2e542e..c4ff25f97cf 100644
--- a/frontend/src/global_styles/content/work_packages/_table_content.sass
+++ b/frontend/src/global_styles/content/work_packages/_table_content.sass
@@ -69,6 +69,7 @@
padding-left: 0
padding-top: 0
padding-bottom: 0
+ vertical-align: middle
// To display the input field border correctly (input height is 24px)
line-height: 24px
@@ -137,7 +138,7 @@ html:not(.-browser-mobile)
display: inline-block
vertical-align: middle
width: 100%
-
+
@media print
white-space: normal
@@ -177,4 +178,3 @@ body.-browser-edge
.wp-table--cell-td img.thumbnail
height: 40px
outline: none
-