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

Align toolbar with other elements on mobile and prevent viewer from overlapping page

Inga Mai2e5d4e249bfd
diff --git a/modules/bim/app/assets/stylesheets/bim/ifc_viewer/generic.sass b/modules/bim/app/assets/stylesheets/bim/ifc_viewer/generic.sass
index aea45397a70..7b3bd73d6ca 100644
--- a/modules/bim/app/assets/stylesheets/bim/ifc_viewer/generic.sass
+++ b/modules/bim/app/assets/stylesheets/bim/ifc_viewer/generic.sass
@@ -32,6 +32,7 @@
.ifc-model-viewer--container
height: 33vh !important
+ min-width: unset !important
[data-name="bim"] .main-menu--children
overflow-x: hidden !important
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 82546a7f44d..e85b77e69ef 100644
--- a/modules/bim/app/assets/stylesheets/bim/ifc_viewer/toolbar.sass
+++ b/modules/bim/app/assets/stylesheets/bim/ifc_viewer/toolbar.sass
@@ -46,6 +46,9 @@
// -------------------------- MOBILE specific --------------------------
@media only screen and (max-width: 679px)
+ .ifc-model-viewer--toolbar-container
+ padding-right: 15px
+
.ifc-model-viewer--focus-warning,
.ifc-model-viewer--toolbar-container
.fa-male,