[minor] [fix] [navbar] replace overflow with ellipsis
diff --git a/public/js/conf.js b/public/js/conf.js
index 22e80c9..330a2be 100644
--- a/public/js/conf.js
+++ b/public/js/conf.js
@@ -15,9 +15,16 @@
// add toolbar icon
$(document).bind('toolbar_setup', function() {
- $('.navbar-brand').html('<div style="display: inline-block; cursor: pointer;">\
+ var brand = ($("<div></div>").append(wn.boot.website_settings.brand_html).text() || 'erpnext');
+ $('.navbar-brand').html('<div style="display: inline-block;">\
<object type="image/svg+xml" data="app/images/splash.svg" class="toolbar-splash"></object>\
- </div>' + ($("<div></div>").append(wn.boot.website_settings.brand_html).text() || 'erpnext'))
+ </div>' + brand)
+ .attr("title", brand)
.addClass("navbar-icon-home")
- .css('max-width', '200px').css('overflow', 'hidden');
+ .css({
+ "max-width": "200px",
+ "overflow": "hidden",
+ "text-overflow": "ellipsis",
+ "white-space": "nowrap"
+ });
});