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

[#53451] make editor toolbar sticky in mobile view

Tobias Dillmannfdc58ec93871
diff --git a/frontend/src/global_styles/layout/work_packages/_full_view.sass b/frontend/src/global_styles/layout/work_packages/_full_view.sass
index f80f657b2c8..e3fbb0fdf1e 100644
--- a/frontend/src/global_styles/layout/work_packages/_full_view.sass
+++ b/frontend/src/global_styles/layout/work_packages/_full_view.sass
@@ -48,7 +48,7 @@
&--split-left
border-right: 1px solid var(--borderColor-default)
overflow-y: auto
- overflow-x: hidden
+ overflow-x: clip
flex: 2
position: relative
@include styled-scroll-bar
diff --git a/frontend/src/global_styles/layout/work_packages/_mobile.sass b/frontend/src/global_styles/layout/work_packages/_mobile.sass
index 8955fe375fc..fc2e910b440 100644
--- a/frontend/src/global_styles/layout/work_packages/_mobile.sass
+++ b/frontend/src/global_styles/layout/work_packages/_mobile.sass
@@ -50,6 +50,13 @@
margin: 0
width: initial
border: none
+ // Set overflow to clip so that the editor toolbar can stick, see WP#53451
+ overflow-y: clip
+
+ // We need to cancel out the padding of the page content.
+ // Otherwise, the scrolled content will be visible above the toolbar
+ .document-editor__toolbar
+ top: -10px
.work-packages--panel-inner
padding: 5px 0 20px 0