Fix spacing for Lnbc

This commit is contained in:
Bojan Mojsilovic 2024-04-15 16:36:03 +02:00
parent de1dd413ee
commit bc89b0ad33
2 changed files with 9 additions and 2 deletions

View File

@ -8,6 +8,7 @@
gap: 6px; gap: 6px;
padding: 12px; padding: 12px;
position: relative; position: relative;
margin-top: 8px;
.paymentOverlay { .paymentOverlay {
position: absolute; position: absolute;

View File

@ -414,15 +414,21 @@ const ParsedNote: Component<{
let lnbcToken = match?.find(m => m.startsWith('lnbc')); let lnbcToken = match?.find(m => m.startsWith('lnbc'));
lnbcToken ? if (lnbcToken) {
updateContent(content, 'lnbc', lnbcToken) : removeLinebreaks();
updateContent(content, 'lnbc', lnbcToken);
}
else {
updateContent(content, 'text', token); updateContent(content, 'text', token);
}
return; return;
} }
if (isLnbc(token)) { if (isLnbc(token)) {
lastSignificantContent = 'lnbc'; lastSignificantContent = 'lnbc';
removeLinebreaks();
updateContent(content, 'lnbc', token); updateContent(content, 'lnbc', token);
return; return;
} }