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

Use correct nested elements in sidemenu to ensure that long titles are truncated

Henriette Dargefa22b2980b07
diff --git a/app/components/open_project/common/submenu_component.html.erb b/app/components/open_project/common/submenu_component.html.erb
index b45a03c6113..9e19a14c8da 100644
--- a/app/components/open_project/common/submenu_component.html.erb
+++ b/app/components/open_project/common/submenu_component.html.erb
@@ -8,7 +8,7 @@
<li class="op-sidemenu--item">
<% selected = menu_item[:selected] ? 'selected' : '' %>
<a class="op-sidemenu--item-action <%= selected %>" href="<%= menu_item[:href] %>">
- <%= menu_item[:title] %>
+ <span class="op-sidemenu--item-title"><%= menu_item[:title] %></span>
</a>
</li>
<% end %>
@@ -40,7 +40,7 @@
<li class="op-sidemenu--item">
<% selected = child_item[:selected] ? 'selected' : '' %>
<a class="op-sidemenu--item-action <%= selected %>" href="<%= child_item[:href] %>">
- <%= child_item[:title] %>
+ <span class="op-sidemenu--item-title"><%= child_item[:title] %></span>
</a>
</li>
<% end %>