From d0e3b484a5f591b4be650d025e52b4efdbd68a1e Mon Sep 17 00:00:00 2001 From: Goto Date: Wed, 14 Feb 2024 14:24:26 +0000 Subject: [PATCH 1/5] Pause refresh if user is hovering row|input --- gui/templates/base.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/templates/base.html b/gui/templates/base.html index 5c98649b..54ae7d36 100644 --- a/gui/templates/base.html +++ b/gui/templates/base.html @@ -155,7 +155,7 @@

My Lnd Overview

async function auto_refresh(async_callback) { await sleep(21000) - while(document.hidden || document.cookie.includes('refresh=false')) { + while(document.hidden || document.cookie.includes('refresh=false') || document.activeElement.nodeName == "INPUT" || document.querySelectorAll('tr:hover').length === 1) { await sleep(100) } await async_callback() @@ -163,4 +163,4 @@

My Lnd Overview

//END: BASE CONFIG //------------------------------------------------------------------------------------------------------------------------- - + \ No newline at end of file From 741f8b50c977e8e7107cdc0f22ecd099945dd6d0 Mon Sep 17 00:00:00 2001 From: Goto Date: Wed, 14 Feb 2024 18:32:08 +0000 Subject: [PATCH 2/5] Move navbar to the bottom of the page & share it across all pages --- gui/templates/base.html | 60 ++++++++++++++++++++++++++--------------- gui/templates/home.html | 38 +++++--------------------- 2 files changed, 45 insertions(+), 53 deletions(-) diff --git a/gui/templates/base.html b/gui/templates/base.html index f6e34113..1565e35e 100644 --- a/gui/templates/base.html +++ b/gui/templates/base.html @@ -102,33 +102,51 @@

{{ message.message }}

{% endfor %} {% endif %} - {% block content %}{% endblock %} -