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

This commit is contained in:
Sergio Betanzos authored and GitHub committed 2021-04-12 14:08:34 +02:00
1 parent 0ef2364e7d
commit cf305de3ae
2 files changed
+8 -1

No files matched your search

+6 -1
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 {
+2
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 {