From cf305de3ae856597818921b33fe1ecfc2bd32c9c Mon Sep 17 00:00:00 2001 From: Sergio Betanzos Date: Mon, 12 Apr 2021 14:08:34 +0200 Subject: [PATCH] B #5325: Fix sidebar tab with long text (#1090) --- src/sunstone/public/app/sunstone.js | 7 ++++++- src/sunstone/public/scss/_menu.scss | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/sunstone/public/app/sunstone.js b/src/sunstone/public/app/sunstone.js index 836260c2dd..b2f9204bc3 100644 --- a/src/sunstone/public/app/sunstone.js +++ b/src/sunstone/public/app/sunstone.js @@ -224,10 +224,15 @@ define(function(require) { if (tabInfo.icon) { title += " "; } + title += tabInfo.title; + if(title !== "undefined"){ if (parent !== "") { - liItem = "
  • " + "" + title + "" + "
  • "; + liItem = "
  • " + + "" + title + "" + + "
  • "; + if ($("#menu ul#navigation #li_" + parent + " .menu").length > 0) { $("#menu ul#navigation #li_" + parent + " .menu").append(liItem); } else { diff --git a/src/sunstone/public/scss/_menu.scss b/src/sunstone/public/scss/_menu.scss index 9d03000300..59ab458e4d 100644 --- a/src/sunstone/public/scss/_menu.scss +++ b/src/sunstone/public/scss/_menu.scss @@ -38,6 +38,8 @@ &.subTab > * { padding: 0.5rem 1rem; color: $dark-gray; + overflow: hidden; + text-overflow: ellipsis; } &.navigation-active-li:not(.topTab) > a {