fixed notification cutting issue

This commit is contained in:
sairaj mote 2020-09-10 20:45:59 +05:30 committed by GitHub
parent 6c9f527b14
commit 5928692dbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 6 deletions

View File

@ -2167,6 +2167,16 @@ box-shadow: 0 0.1rem 0.2rem rgba(0, 0, 0, 0.1),
background: rgba(var(--foreground-color), 1);
transition: height 0.3s, transform 0.3s, opacity 0.3s;
overflow: hidden;
overflow-wrap: break-word;
word-wrap: break-word;
-ms-word-break: break-all;
word-break: break-all;
word-break: break-word;
-ms-hyphens: auto;
-moz-hyphens: auto;
-webkit-hyphens: auto;
hyphens: auto;
max-width: 100%;
}
h4:first-letter,
p:first-letter{
@ -2180,7 +2190,16 @@ line-height: 1.6;
flex: 1;
color: rgba(var(--text-color), 0.9);
overflow-wrap: break-word;
overflow-wrap: break-word;
word-wrap: break-word;
-ms-word-break: break-all;
word-break: break-all;
word-break: break-word;
-ms-hyphens: auto;
-moz-hyphens: auto;
-webkit-hyphens: auto;
hyphens: auto;
max-width: 100%;
}
.notification:last-of-type{
margin-bottom: 0;
@ -2315,8 +2334,7 @@ customElements.define('sm-notifications', class extends HTMLElement {
composition += `
<svg class="notification-icon icon success-icon" viewBox="0 0 64 64">
<polyline points="0.35 31.82 21.45 52.98 63.65 10.66"/>
</svg>
`
</svg>`
}
composition += `
<p>${messageBody}</p>

View File

@ -11616,7 +11616,7 @@
receiverID: myFloID
});
notify(`Transfer successful: <span class="breakable">${flo_txid}</span>.`, 'success', '', true);
notify(`Transfer successful: ${flo_txid}`, 'success', true, true);
return true;
}
@ -11728,7 +11728,7 @@
hidePopup()
return false;
} else {
notify(`Transaction successful: <span class="breakable">${flo_txid}</span>.`, 'success', '', true);
notify(`Transaction successful: ${flo_txid}`, 'success', true, true);
if (payingRequested) {
const all_reqs = floDapps.getNextGeneralData(token_app.master_configurations
.TYPE_REQUEST_PAYMENT, "0").reverse();
@ -11887,7 +11887,7 @@
receiverID: myFloID
});
notify(`Transaction successful: <span class="breakable">${flo_txid}</span>.
notify(`Transaction successful: ${flo_txid}.
INR ${amount_to_pay} sent to ${vendor_flo_id}`, 'success', '', true);
return true;
}
@ -12084,7 +12084,7 @@
senderIDs: [myFloID]
});
notify(`You have sent cash to <span class="breakable">${recvr_id}</span> through our cashier service (${cashier_upi}).
notify(`You have sent cash to <div class="breakable">${recvr_id}</div> through our cashier service (${cashier_upi}).
Once the cashier receives your payment, he will transfer it to ${recvr_id}.`, '', true, true);
hidePopup()
}