From bb34e47e46680181f66dfc8f3bcf149714d76364 Mon Sep 17 00:00:00 2001 From: shocknet-justin Date: Thu, 9 Oct 2025 21:09:11 -0400 Subject: [PATCH] wiz --- scripts/install.sh | 2 +- static/css/connect.css | 3 +++ static/js/wizard.js | 6 ++++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index d08e88f2..171d0b1c 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -11,7 +11,7 @@ log() { echo -e "$(echo "$message" | sed 's/\\e\[[0-9;]*m//g')" >> "$TMP_LOG_FILE" } -SCRIPT_VERSION="0.2.1" +SCRIPT_VERSION="0.2.2" REPO="shocknet/Lightning.Pub" BRANCH="master" diff --git a/static/css/connect.css b/static/css/connect.css index e122420a..2e7fdcf7 100644 --- a/static/css/connect.css +++ b/static/css/connect.css @@ -33,6 +33,7 @@ -moz-user-select: text; -ms-user-select: text; user-select: text; + pointer-events: auto; } .qrcode-box { cursor: pointer; } .qrcode-box.revealed { cursor: default; } @@ -66,6 +67,8 @@ font-size: 12px; } .qrcode-box.revealed .qr-veil { display: none; } +.qrcode-viewport.revealed .qr-veil { display: none; } +.qrcode-box.revealed .qrcode-viewport { backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; } /* hide helper text when revealed to avoid overlap */ .qrcode-box.revealed #click-text { display: none; } diff --git a/static/js/wizard.js b/static/js/wizard.js index 1a6ad75f..fe45da22 100644 --- a/static/js/wizard.js +++ b/static/js/wizard.js @@ -156,13 +156,15 @@ $(() => { // Reveal on click: show string below and remove veil/heading codebox.off('click').on('click', (e) => { - e.preventDefault(); - e.stopPropagation(); if (!codebox.hasClass('revealed')) { + e.preventDefault(); + e.stopPropagation(); cs.text(connectString); codebox.addClass('revealed'); codebox.find('.qr-veil').hide(); clickText.hide(); + // Unbind to allow text selection and normal behavior after reveal + codebox.off('click'); } }); })();