mirror of
https://github.com/PrimalHQ/primal-web-app.git
synced 2024-10-01 17:31:13 +00:00
Fix spacing for Lnbc
This commit is contained in:
parent
de1dd413ee
commit
bc89b0ad33
@ -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;
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user