From 505ec1da87db2f13b4101f1584b20b6f78f8d972 Mon Sep 17 00:00:00 2001 From: Bojan Mojsilovic Date: Mon, 8 Apr 2024 12:29:58 +0200 Subject: [PATCH] Various fixes --- src/assets/icons/lightning_white.svg | 10 +++++++++ src/components/Lnbc/Lnbc.module.scss | 22 +++++++++++++------ src/components/Lnbc/Lnbc.tsx | 2 +- .../ProfileQrCodeModal.module.scss | 2 +- src/pages/Messages.module.scss | 9 ++++++++ src/translations.ts | 2 +- 6 files changed, 37 insertions(+), 10 deletions(-) create mode 100644 src/assets/icons/lightning_white.svg diff --git a/src/assets/icons/lightning_white.svg b/src/assets/icons/lightning_white.svg new file mode 100644 index 0000000..9d602ce --- /dev/null +++ b/src/assets/icons/lightning_white.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/components/Lnbc/Lnbc.module.scss b/src/components/Lnbc/Lnbc.module.scss index af8e7c2..19d3ba7 100644 --- a/src/components/Lnbc/Lnbc.module.scss +++ b/src/components/Lnbc/Lnbc.module.scss @@ -154,6 +154,14 @@ &.noBack { background-color: unset; } + + .lnIcon { + width: 20px; + height: 20px; + background-image: url('../../assets/icons/lightning.svg'); + background-size: contain; + background-repeat: no-repeat; + } } .lnbcAlter { @@ -314,12 +322,12 @@ &.noBack { background-color: unset; } -} -.lnIcon { - width: 20px; - height: 20px; - background-image: url('../../assets/icons/lightning.svg'); - background-size: contain; - background-repeat: no-repeat; + .lnIcon { + width: 20px; + height: 20px; + background-image: url('../../assets/icons/lightning_white.svg'); + background-size: contain; + background-repeat: no-repeat; + } } diff --git a/src/components/Lnbc/Lnbc.tsx b/src/components/Lnbc/Lnbc.tsx index b60b96c..106f5a8 100644 --- a/src/components/Lnbc/Lnbc.tsx +++ b/src/components/Lnbc/Lnbc.tsx @@ -71,7 +71,7 @@ const Lnbc: Component< { id?: string, lnbc: string, alternative?: boolean, noBac `${humanizeNumber(parseInt(invoice.sections.find(s => s.name === 'amount')?.value ||'0') / 1_000)} sats`; const description = () => - invoice.sections.find(s => s.name === 'description')?.value; + decodeURI(invoice.sections.find(s => s.name === 'description')?.value); const confirmPayment = () => app?.actions.openConfirmModal({ title: intl.formatMessage(lnInvoice.confirm.title), diff --git a/src/components/ProfileQrCodeModal/ProfileQrCodeModal.module.scss b/src/components/ProfileQrCodeModal/ProfileQrCodeModal.module.scss index 275e9be..0c45b6b 100644 --- a/src/components/ProfileQrCodeModal/ProfileQrCodeModal.module.scss +++ b/src/components/ProfileQrCodeModal/ProfileQrCodeModal.module.scss @@ -31,7 +31,7 @@ flex-direction: column; margin-left: 8px; justify-content: space-between; - height: 40px; + height: 44px; .name { display: flex; diff --git a/src/pages/Messages.module.scss b/src/pages/Messages.module.scss index ba99cb3..75f0160 100644 --- a/src/pages/Messages.module.scss +++ b/src/pages/Messages.module.scss @@ -276,8 +276,13 @@ text-decoration: underline !important; } } + + .messageLn { + padding: 0 12px !important; + } } + .myThread { + padding: 0 12px !important; margin-bottom: 20px; } } @@ -292,6 +297,10 @@ border-radius: 12px 12px 12px 0px; } } + + .messageLn { + padding: 0 !important; + } } + .theirThread { margin-bottom: 20px; diff --git a/src/translations.ts b/src/translations.ts index 42a36b2..0f8e9c7 100644 --- a/src/translations.ts +++ b/src/translations.ts @@ -1056,7 +1056,7 @@ export const placeholders = { }, resetRelaysHelp: { id: 'placeholders.resetRelaysHelp', - defaultMessage: 'This action will disconnect you from any relays you are currently connected to and connect you to a set of recomended relays. THIS CHANGE WILL BE PROPAGETED TO THE NOSTR NETWOK NOSTR.', + defaultMessage: 'This action will disconnect you from any relays you are currently connected to and connect you to a set of recomended relays.', description: 'text for caching pool help bubble', }, comingSoon: {