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

User correct styles in "show_defaults" route and truncate overflowing labels

Henriette Dingerecad6a5d276e
diff --git a/modules/ifc_models/app/assets/stylesheets/ifc_viewer/generic.sass b/modules/ifc_models/app/assets/stylesheets/ifc_viewer/generic.sass
index 431cb098e04..d0cf83d48eb 100644
--- a/modules/ifc_models/app/assets/stylesheets/ifc_viewer/generic.sass
+++ b/modules/ifc_models/app/assets/stylesheets/ifc_viewer/generic.sass
@@ -16,6 +16,9 @@
flex-direction: column
height: 100%
+ .main-menu--children
+ overflow-x: hidden !important
+
.ifc-model-viewer--container
flex-grow: 1
position: relative
diff --git a/modules/ifc_models/app/assets/stylesheets/ifc_viewer/tabs.sass b/modules/ifc_models/app/assets/stylesheets/ifc_viewer/tabs.sass
index 35a679df0ca..00ce0caf004 100644
--- a/modules/ifc_models/app/assets/stylesheets/ifc_viewer/tabs.sass
+++ b/modules/ifc_models/app/assets/stylesheets/ifc_viewer/tabs.sass
@@ -5,6 +5,7 @@
label
@include varprop(color, main-menu-font-color)
+ @include text-shortener
// -------------------------- XEOKIT specific rules for TABS --------------------------
.xeokit-tabs
@@ -74,6 +75,7 @@
&:hover,
&:focus,
+ &:active,
li:hover &
@include varprop(background-color, main-menu-bg-color)
@include varprop(color, main-menu-bg-color)
diff --git a/modules/ifc_models/app/views/ifc_models/ifc_models/show_defaults.html.erb b/modules/ifc_models/app/views/ifc_models/ifc_models/show_defaults.html.erb
index 5a28a45d745..5b5702c9c1c 100644
--- a/modules/ifc_models/app/views/ifc_models/ifc_models/show_defaults.html.erb
+++ b/modules/ifc_models/app/views/ifc_models/ifc_models/show_defaults.html.erb
@@ -33,7 +33,7 @@ See doc/COPYRIGHT.rdoc for more details.
<% html_title t('ifc_models.label_default_ifc_models') -%>
<% content_for :header_tags do %>
- <%= stylesheet_link_tag "ifc_models/ifc_models", media: 'all' %>
+ <%= stylesheet_link_tag "ifc_viewer/generic", media: 'all' %>
<%= include_gon(nonce: content_security_policy_script_nonce) %>
<% end %>