From 232d7accd3c27f9007056cda4ddaa1b0a4bda3b1 Mon Sep 17 00:00:00 2001 From: dhonus Date: Sun, 7 Jan 2024 00:54:08 +0100 Subject: [PATCH] slight sleep mode fixes --- assets/style.sass | 6 +++--- static/js/screen.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/style.sass b/assets/style.sass index 9c1073c..a16d6c5 100644 --- a/assets/style.sass +++ b/assets/style.sass @@ -485,9 +485,9 @@ $gallery-gap: 1rem box-shadow: 0 0 1px $link input:checked + .slider:before - -webkit-transform: translateX(22px) - -ms-transform: translateX(22px) - transform: translateX(22px) + -webkit-transform: translateX(24px) + -ms-transform: translateX(24px) + transform: translateX(24px) div#statusDiv color: #2a2926 diff --git a/static/js/screen.js b/static/js/screen.js index efc7252..a878b2f 100644 --- a/static/js/screen.js +++ b/static/js/screen.js @@ -85,7 +85,7 @@ try { wakeLock.addEventListener('release', (e) => { console.log(e); wakeLockCheckbox.checked = false; - statusDiv.textContent = 'Automatically turned off'; + statusDiv.textContent = 'Screen sleep restored'; console.log('Wake Lock was released'); }); wakeLockCheckbox.checked = true;