Skip to content

Commit de12621

Browse files
author
p01
committed
Fix for DFL-3721, Long page titles produce long lines in left panel
1 parent 73f827f commit de12621

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/resource-manager/resource_templates.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ window.templates.resource_tree || (window.templates.resource_tree = new function
1111

1212
this._get_short_distinguisher = function(url)
1313
{
14-
var name = url.short_distinguisher;
14+
var name = url.short_distinguisher || url;
1515

1616
if (name.length > DISTINGUISHER_MAX_LENGTH)
1717
name = name.slice(0, DISTINGUISHER_MAX_LENGTH) + "…";
@@ -89,8 +89,10 @@ window.templates.resource_tree || (window.templates.resource_tree = new function
8989
["h2",
9090
extras.tpl.button,
9191
["span",
92-
window_info.title,
93-
"class", "resource-tree-window-label"
92+
this._get_short_distinguisher(window_info.title),
93+
"class", "resource-tree-window-label",
94+
"data-tooltip", "js-script-select",
95+
"data-tooltip-text", window_info.title
9496
]
9597
].concat(extras.tpl.h2),
9698
].concat(extras.tpl.li)

0 commit comments

Comments
 (0)