1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-29 18:50:08 +03:00

B #5325: Fix sidebar tab with long text (#1090)

(cherry picked from commit cf305de3ae856597818921b33fe1ecfc2bd32c9c)
This commit is contained in:
Sergio Betanzos 2021-04-12 14:08:34 +02:00 committed by Tino Vazquez
parent fca2fb32c0
commit 40b8e284a4
2 changed files with 8 additions and 1 deletions

View File

@ -224,10 +224,15 @@ define(function(require) {
if (tabInfo.icon) {
title += "<i class=\"fas fa-lg fa-fw " + tabInfo.icon + "\"></i> ";
}
title += tabInfo.title;
if(title !== "undefined"){
if (parent !== "") {
liItem = "<li id=\"li_" + tabName + "\" class=\"" + tabClass + "\">" + "<a href=\"#\">" + title + "</a>" + "</li>";
liItem = "<li id=\"li_" + tabName + "\" class=\"" + tabClass + "\">" +
"<a title=\"" + tabInfo.title + "\" href=\"#\">" + title + "</a>" +
"</li>";
if ($("#menu ul#navigation #li_" + parent + " .menu").length > 0) {
$("#menu ul#navigation #li_" + parent + " .menu").append(liItem);
} else {

View File

@ -38,6 +38,8 @@
&.subTab > * {
padding: 0.5rem 1rem;
color: $dark-gray;
overflow: hidden;
text-overflow: ellipsis;
}
&.navigation-active-li:not(.topTab) > a {