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

Apply special styles for mobile back button only on WP page as it is the only page that can handle these special rules. All others break with that styling

Henriette Darge8b6ca17ea28c
diff --git a/frontend/src/app/features/work-packages/components/back-routing/back-button.component.sass b/frontend/src/app/features/work-packages/components/back-routing/back-button.component.sass
index 61314bf11ff..98ae22d4f31 100644
--- a/frontend/src/app/features/work-packages/components/back-routing/back-button.component.sass
+++ b/frontend/src/app/features/work-packages/components/back-routing/back-button.component.sass
@@ -9,10 +9,11 @@
font-size: 1rem
line-height: 22px
- @media only screen and (max-width: 679px)
- // Move button in the current reverse order to front
- position: absolute
- top: 0
- left: 0
- z-index: 1
- width: 100%
\ No newline at end of file
+ &_mobile-full-width
+ @media only screen and (max-width: 679px)
+ // Move button in the current reverse order to front
+ position: absolute
+ top: 0
+ left: 0
+ z-index: 1
+ width: 100%
diff --git a/frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.html b/frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.html
index 7a576699802..609c58c660a 100644
--- a/frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.html
+++ b/frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.html
@@ -9,7 +9,10 @@
<div id="toolbar">
<div class="wp-show--header-container">
- <op-back-button linkClass="work-packages-back-button"></op-back-button>
+ <op-back-button
+ linkClass="work-packages-back-button op-back-button_mobile-full-width"
+ >
+ </op-back-button>
<div class="subject-header">
<wp-subject></wp-subject>