From: Matthias Schmidt Date: Wed, 29 Nov 2017 17:56:06 +0000 (+0100) Subject: Add missing space between icon and text of media list's upload button X-Git-Tag: 3.1.0_Beta_4~39 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9c3c1a90c7aa011c5eaff60e593b582d898e693f;p=GitHub%2FWoltLab%2FWCF.git Add missing space between icon and text of media list's upload button --- 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); }, /**