From 9c3c1a90c7aa011c5eaff60e593b582d898e693f Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 29 Nov 2017 18:56:06 +0100 Subject: [PATCH] Add missing space between icon and text of media list's upload button --- .../files/js/WoltLabSuite/Core/Media/List/Upload.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Media/List/Upload.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Media/List/Upload.js index b9f4d48239..3e1e6650e5 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Media/List/Upload.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Media/List/Upload.js @@ -47,9 +47,14 @@ define( _createButton: function() { MediaListUpload._super.prototype._createButton.call(this); + var span = elBySel('span', this._button); + + var space = document.createTextNode(' '); + DomUtil.prepend(space, span); + var icon = elCreate('span'); icon.className = 'icon icon16 fa-upload'; - DomUtil.prepend(icon, elBySel('span', this._button)); + DomUtil.prepend(icon, span); }, /** -- 2.20.1