luci-mod-network: small styling fixes for vlan filter matrix
authorJo-Philipp Wich <jo@mein.io>
Sun, 13 Jun 2021 19:47:40 +0000 (21:47 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 13 Jun 2021 19:48:27 +0000 (21:48 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit cbf2cc396a29d6794a4d883d80f8390e227e072b)

modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js

index 8ba259e2c949eb7f8e4a1f134cd19e96796d9933..2ebf3afe029a4328e4a8a883a75db5b7eda42087 100644 (file)
@@ -834,6 +834,7 @@ return baseclass.extend({
                        var node = form.TableSection.prototype.renderHeaderRows.apply(this, arguments);
 
                        node.querySelectorAll('.th').forEach(function(th) {
+                               th.classList.add('left');
                                th.classList.add('middle');
                        });
 
@@ -848,6 +849,7 @@ return baseclass.extend({
                ss.render = function(/* ... */) {
                        return form.TableSection.prototype.render.apply(this, arguments).then(L.bind(function(node) {
                                node.style.overflow = 'auto hidden';
+                               node.style.paddingTop = '1em';
 
                                if (this.node)
                                        this.node.parentNode.replaceChild(node, this.node);