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

Improve spacing of attributes spanning 2 columns

Benjamin Bädorf34f5b1e02e49
diff --git a/frontend/src/global_styles/content/work_packages/single_view/_single_view.sass b/frontend/src/global_styles/content/work_packages/single_view/_single_view.sass
index b4453685687..ddff242a07c 100644
--- a/frontend/src/global_styles/content/work_packages/single_view/_single_view.sass
+++ b/frontend/src/global_styles/content/work_packages/single_view/_single_view.sass
@@ -130,6 +130,19 @@ i
flex: 1 0 55%
max-width: 55%
+ // For attributes that span both columns, make sure the label is not way too wide
+ .wp-attribute-group--attribute_span-all
+ @media screen and (min-width: 92rem), print
+ // These weird calculations are made to account for the side-margins that make
+ // up the flex-basis calculations of the single-column items.
+ .attributes-key-value--key
+ flex: 1 0 calc((100% - 3rem) * 0.225)
+ max-width: calc((100% - 3rem) * 0.225)
+ .attributes-key-value--value-container
+ flex: 1 0 calc((100% - 3rem) * 0.775)
+ max-width: calc((100% - 3rem) * 0.775)
+
+
// -------------------- Info row --------------------
.work-packages--info-row
font-size: 12px