diff --git a/public/js/conf.js b/public/js/conf.js
index 22e80c98d80..330a2beaaf8 100644
--- a/public/js/conf.js
+++ b/public/js/conf.js
@@ -15,9 +15,16 @@ wn.modules_path = 'erpnext';
// add toolbar icon
$(document).bind('toolbar_setup', function() {
- $('.navbar-brand').html('
\
+ var brand = ($("
").append(wn.boot.website_settings.brand_html).text() || 'erpnext');
+ $('.navbar-brand').html('
\
\
-
' + ($("
").append(wn.boot.website_settings.brand_html).text() || 'erpnext'))
+
' + 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"
+ });
});