From 0cb3780db554a5851c65cc9e92e528a4ceb979df Mon Sep 17 00:00:00 2001 From: CharlesMengCA Date: Wed, 3 Apr 2024 14:18:00 -0400 Subject: [PATCH] luci-mod-status: Move "Scroll to tail" button to header line on syslog and kernellog status pages Signed-off-by: CharlesMengCA --- .../htdocs/luci-static/resources/view/status/dmesg.js | 6 ++++-- .../htdocs/luci-static/resources/view/status/syslog.js | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/dmesg.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/dmesg.js index 45b483962d5f..a8b255f5ff25 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/dmesg.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/dmesg.js @@ -51,9 +51,11 @@ return view.extend({ }); return E([], [ - E('h2', {}, [ _('Kernel Log') ]), + E('div', { 'style': 'display:flex; align-items:center; gap:5rem; padding-bottom:1rem' }, [ + E('h2', {}, [ _('Kernel Log') ]), + scrollDownButton + ]), E('div', { 'id': 'content_syslog' }, [ - E('div', {'style': 'padding-bottom: 20px'}, [scrollDownButton]), E('textarea', { 'id': 'syslog', 'style': 'font-size:12px', diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/syslog.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/syslog.js index 2e3d705c2220..12b177014944 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/syslog.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/syslog.js @@ -56,9 +56,11 @@ return view.extend({ }); return E([], [ - E('h2', {}, [ _('System Log') ]), + E('div', { 'style': 'display:flex; align-items:center; gap:5rem; padding-bottom:1rem' }, [ + E('h2', {}, [ _('System Log') ]), + scrollDownButton + ]), E('div', { 'id': 'content_syslog' }, [ - E('div', {'style': 'padding-bottom: 20px'}, [scrollDownButton]), E('textarea', { 'id': 'syslog', 'style': 'font-size:12px',