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

[#44828] add overrides for grid layout for relations on mobile

Eric Schubert49548ec2f3ba
diff --git a/frontend/src/global_styles/content/work_packages/tabs/_relations.sass b/frontend/src/global_styles/content/work_packages/tabs/_relations.sass
index 20e140c50f1..08d6490483d 100644
--- a/frontend/src/global_styles/content/work_packages/tabs/_relations.sass
+++ b/frontend/src/global_styles/content/work_packages/tabs/_relations.sass
@@ -61,6 +61,17 @@
.controls-container
text-align: right
+ // FIXME: This overrides of `_grid.scss` classes for relations fixes
+ // https://community.openproject.org/projects/openproject/work_packages/44828/activity#activity-17.
+ // But, the grid layout does not work for relations on mobile, nor does it really fit the needs
+ // of the relations component in general.
+ .medium-2
+ flex: 0 0 calc((100% / 12) * 2)
+ .medium-3
+ flex: 0 0 calc((100% / 12) * 3)
+ .medium-5
+ flex: 0 0 calc((100% / 12) * 5)
+
.wp-relations-hierarchy-section
margin-top: 35px