From 042854c03d27ea61a8b0de9b33436b6f8f9a4945 Mon Sep 17 00:00:00 2001 From: void-57 Date: Wed, 13 Aug 2025 20:26:07 +0530 Subject: [PATCH] Enhance popup styles for better mobile responsiveness and remove console logs from wallet functions --- css/main.css | 15 +++++++++------ scripts/wallet.js | 6 ++---- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/css/main.css b/css/main.css index 9d29787..52a82a1 100644 --- a/css/main.css +++ b/css/main.css @@ -2794,14 +2794,18 @@ sm-popup::part(popup) { } sm-popup::part(popup-container) { - padding: 1rem !important; + padding: 5vh 1rem 5vh 1rem !important; + align-items: flex-start !important; + justify-content: center !important; + overflow-y: auto !important; } sm-popup::part(popup) { - max-height: 90vh !important; + max-height: none !important; margin: 0 auto !important; min-width: auto !important; width: 100% !important; + overflow: visible !important; } .transaction-details { @@ -3246,17 +3250,16 @@ sm-popup::part(popup) { @media (max-width: 768px) { .modern-popup-container { - max-height: 75vh !important; - margin-bottom: 10vh !important; + max-height: none !important; + margin: 0 auto !important; + position: relative !important; } } /* Modern Popup Mobile Styles */ .modern-popup-container { max-width: 95%; - margin: 0.5rem auto; border-radius: 12px; - max-height: 80vh; overflow-y: auto; } diff --git a/scripts/wallet.js b/scripts/wallet.js index 134d9e3..b5097b7 100644 --- a/scripts/wallet.js +++ b/scripts/wallet.js @@ -468,7 +468,7 @@ function convertWIFtoRippleWallet(wif) { keyBuffer = keyBuffer.slice(0, -1); // remove compression flag } const data = xrpl.Wallet.fromEntropy(keyBuffer); - console.log(data); + return { address: data.address, @@ -493,9 +493,7 @@ async function sendXRP() { const senderKey = senderKeyElement.value; const destination = destinationElement.value; const amount = amountElement.value; - console.log("Sender Key:", senderKey); - console.log("Destination:", destination); - console.log("Amount:", amount); + // Validation if (!senderKey) return notify("Please enter your private key", "error"); if (!destination) return notify("Please enter recipient address", "error");