diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-11-02 17:16:43 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-11-02 17:16:43 +0100 |
commit | 68ed2631dc0e2436d9b268948aaa7d50ea9fe1b2 (patch) | |
tree | 9210ef8b47086fb62a32f2ac354319f3240e7c61 | |
parent | 2814fea67efd93d15a11bb56b56540573b61ff4b (diff) | |
download | gitbook-68ed2631dc0e2436d9b268948aaa7d50ea9fe1b2.zip gitbook-68ed2631dc0e2436d9b268948aaa7d50ea9fe1b2.tar.gz gitbook-68ed2631dc0e2436d9b268948aaa7d50ea9fe1b2.tar.bz2 |
Correctly show space between toolbar icon and text in buttons
-rw-r--r-- | theme/assets/website/app.js | 2 | ||||
-rw-r--r-- | theme/javascript/toolbar.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/theme/assets/website/app.js b/theme/assets/website/app.js index 1e8d3c8..2434ad2 100644 --- a/theme/assets/website/app.js +++ b/theme/assets/website/app.js @@ -24922,7 +24922,7 @@ function updateButton(opts) { // Create button var $btn = $('<a>', { '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 de30493..647578f 100644 --- a/theme/javascript/toolbar.js +++ b/theme/javascript/toolbar.js @@ -117,7 +117,7 @@ function updateButton(opts) { // Create button var $btn = $('<a>', { 'class': 'btn', - 'text': opts.text, + 'text': opts.text? ' ' + opts.text : '', 'aria-label': opts.label, 'href': '#' }); |