OSDN Git Service

luci-base: form.js: remove stray `<br>` elements from section placeholder
authorJo-Philipp Wich <jo@mein.io>
Mon, 16 May 2022 14:03:14 +0000 (16:03 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 16 May 2022 14:03:14 +0000 (16:03 +0200)
Theme CSS styles shoudl take care of introducing padding as needed.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/form.js

index a09c805..58f5a07 100644 (file)
@@ -2273,10 +2273,7 @@ var CBITypedSection = CBIAbstractSection.extend(/** @lends LuCI.form.TypedSectio
 
        /** @private */
        renderSectionPlaceholder: function() {
-               return E([
-                       E('em', _('This section contains no values yet')),
-                       E('br'), E('br')
-               ]);
+               return E('em', _('This section contains no values yet'));
        },
 
        /** @private */