From b553b408f6f639d967128dbc46d53d1aae3b89ff 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 acddf454f58c..37af7abc75a9 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 @@ -35,9 +35,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 6ef7d09c70bd..ec6d46c06ff8 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 @@ -41,9 +41,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',