Enhance popup styles for better mobile responsiveness and remove console logs from wallet functions

This commit is contained in:
void-57 2025-08-13 20:26:07 +05:30
parent bbb737aa5b
commit 042854c03d
2 changed files with 11 additions and 10 deletions

View File

@ -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;
}

View File

@ -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");