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

Remove left/right and full view on mobile notifications

Oliver Günther6f758389012d
diff --git a/app/components/work_packages/details/tab_component.html.erb b/app/components/work_packages/details/tab_component.html.erb
index 285ff7cfc93..7e110eec4e3 100644
--- a/app/components/work_packages/details/tab_component.html.erb
+++ b/app/components/work_packages/details/tab_component.html.erb
@@ -6,6 +6,7 @@
flex.with_column(classes: "op-work-package-details-tab-component--action") do
render(Primer::Beta::IconButton.new(icon: :"chevron-left",
tag: :a,
+ classes: "hidden-for-tablet",
scheme: :invisible,
data: {
action: "click->work-packages--details--tabs#scrollLeft"
@@ -42,6 +43,7 @@
flex.with_column(classes: "op-work-package-details-tab-component--action") do
render(Primer::Beta::IconButton.new(icon: :"chevron-right",
tag: :a,
+ classes: "hidden-for-tablet",
scheme: :invisible,
data: {
action: "click->work-packages--details--tabs#scrollRight"
@@ -52,6 +54,7 @@
flex.with_column(classes: "op-work-package-details-tab-component--action") do
render(Primer::Beta::IconButton.new(icon: :"screen-full",
tag: :a,
+ classes: "hidden-for-small-laptops",
href: work_package_path(work_package.id, full_screen_tab),
target: "_top",
scheme: :invisible,
diff --git a/frontend/src/global_styles/layout/_base_mobile.sass b/frontend/src/global_styles/layout/_base_mobile.sass
index 0eb5ec9de40..09a78161373 100644
--- a/frontend/src/global_styles/layout/_base_mobile.sass
+++ b/frontend/src/global_styles/layout/_base_mobile.sass
@@ -63,6 +63,9 @@
display: none !important
@media screen and (max-width: $breakpoint-lg)
+ .hidden-for-small-laptops
+ display: none !important
+
#main
grid-template-columns: auto