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

Firefox fix for aligning table and Gantt chart rows (#8771)

Aleix Suaue03161b5e35d
diff --git a/frontend/src/global_styles/content/work_packages/timelines/_timelines.sass b/frontend/src/global_styles/content/work_packages/timelines/_timelines.sass
index 7eaf5da7779..f251d63dda5 100644
--- a/frontend/src/global_styles/content/work_packages/timelines/_timelines.sass
+++ b/frontend/src/global_styles/content/work_packages/timelines/_timelines.sass
@@ -76,10 +76,19 @@
&.-collapsed
display: none
-// Add margin to timeline when inline-create link is showing in table
-.wp-table-timeline--body.-inline-create-mirror
+// Add margin (row's height) to the timeline on split view
+// to compensate the 'wpTableSumsRow' row that the work
+// packages table has. If not, when scrolling down the last
+// rows are misaligned.
+.wp-table-timeline--body
margin-bottom: var(--table-timeline--row-height)
+// Add an extra margin (row's height) to the timeline when the
+// wpInlineCreate row is shown in work packages table. If not, when
+// scrolling down the last rows are misaligned.
+.wp-table-timeline--body.-inline-create-mirror
+ margin-bottom: calc(var(--table-timeline--row-height) * 2)
+
.children-duration-bar
position: absolute
height: 10px
diff --git a/frontend/src/global_styles/layout/work_packages/_table.sass b/frontend/src/global_styles/layout/work_packages/_table.sass
index 967d40fca3a..6ac3c219f63 100644
--- a/frontend/src/global_styles/layout/work_packages/_table.sass
+++ b/frontend/src/global_styles/layout/work_packages/_table.sass
@@ -131,9 +131,7 @@
will-change: transform
// Hinter browser that the content of the flex is contained except for size
contain: strict
- // Added on split view to compensate the 'wpTableSumsRow' that the left table has.
- // If not, when scrolling down the last rows are misaligned
- padding-bottom: calc(var(--table-timeline--row-height) - 1px)
+
.work-package--attachments--files
margin-bottom: 1rem