diff options
author | Fritz D. Ansel <fdansel@yandex.ru> | 2021-08-02 20:24:40 +0200 |
---|---|---|
committer | Fritz D. Ansel <fdansel@yandex.ru> | 2021-08-11 09:25:53 +0200 |
commit | 57f325a757a9d037eb08852cc134ebdc111d321c (patch) | |
tree | ac893c408e816693a759e1e2305d35c214452931 /applications/luci-app-vnstat2/htdocs/luci-static/resources/view/vnstat2 | |
parent | b5af813318316e26592971c73a10a455493de7d5 (diff) |
vnstat2: allow graphs side by side
an a full-hd screen you will have now 2x3 graphs
instead scrolling through 1x6 graphs
Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
Diffstat (limited to 'applications/luci-app-vnstat2/htdocs/luci-static/resources/view/vnstat2')
-rw-r--r-- | applications/luci-app-vnstat2/htdocs/luci-static/resources/view/vnstat2/graphs.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-app-vnstat2/htdocs/luci-static/resources/view/vnstat2/graphs.js b/applications/luci-app-vnstat2/htdocs/luci-static/resources/view/vnstat2/graphs.js index fbe9d59337..7ac3b3f7e7 100644 --- a/applications/luci-app-vnstat2/htdocs/luci-static/resources/view/vnstat2/graphs.js +++ b/applications/luci-app-vnstat2/htdocs/luci-static/resources/view/vnstat2/graphs.js @@ -16,11 +16,11 @@ return view.extend({ ]); ifaces.forEach(function(iface) { - tab.appendChild(E('p', {}, E('img', { 'data-iface': iface, 'style': 'display:none' }))); + tab.appendChild(E('span', {}, E('img', { 'data-iface': iface, 'style': 'visibility:hidden; margin:5px 10px' }))); fs.exec_direct('/usr/bin/vnstati', [ '-'+style, '-i', iface, '-o', '-' ], 'blob').then(function(res) { var img = tab.querySelector('img[data-iface="%s"]'.format(iface)); img.src = URL.createObjectURL(res); - img.style.display = ''; + img.style.visibility = 'visible'; tab.firstElementChild.style.display = 'none'; }); }); |