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

Hide some toolbar buttons, keyboard and nav cube on mobile

Inga Mai00a3a02dba84
diff --git a/frontend/src/app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.component.sass b/frontend/src/app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.component.sass
index c6f81d38305..690ff0fd56f 100644
--- a/frontend/src/app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.component.sass
+++ b/frontend/src/app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.component.sass
@@ -46,3 +46,8 @@
.ifc-model-viewer--keyboard-disabled-icon
font-size: 20px
+
+@media only screen and (max-width: 679px)
+ .ifc-model-viewer--nav-cube-canvas,
+ .ifc-model-viewer--focus-warning
+ display: none
diff --git a/modules/bim/app/assets/stylesheets/bim/ifc_viewer/toolbar.sass b/modules/bim/app/assets/stylesheets/bim/ifc_viewer/toolbar.sass
index adb95d285c8..82546a7f44d 100644
--- a/modules/bim/app/assets/stylesheets/bim/ifc_viewer/toolbar.sass
+++ b/modules/bim/app/assets/stylesheets/bim/ifc_viewer/toolbar.sass
@@ -43,3 +43,12 @@
.xeokit-section-counter
display: none
+// -------------------------- MOBILE specific --------------------------
+
+@media only screen and (max-width: 679px)
+ .ifc-model-viewer--focus-warning,
+ .ifc-model-viewer--toolbar-container
+ .fa-male,
+ .fa-cut
+ display: none
+