diff --git a/theme/assets/website/app.js b/theme/assets/website/app.js index 1e8d3c85f..2434ad2da 100644 --- a/theme/assets/website/app.js +++ b/theme/assets/website/app.js @@ -24922,7 +24922,7 @@ function updateButton(opts) { // Create button var $btn = $('', { 'class': 'btn', - 'text': opts.text, + 'text': opts.text? ' ' + opts.text : '', 'aria-label': opts.label, 'href': '#' }); diff --git a/theme/javascript/toolbar.js b/theme/javascript/toolbar.js index de30493ba..647578f29 100644 --- a/theme/javascript/toolbar.js +++ b/theme/javascript/toolbar.js @@ -117,7 +117,7 @@ function updateButton(opts) { // Create button var $btn = $('', { 'class': 'btn', - 'text': opts.text, + 'text': opts.text? ' ' + opts.text : '', 'aria-label': opts.label, 'href': '#' });