From 8be118db1be4dbac256f0898919e217fb3c3f3c2 Mon Sep 17 00:00:00 2001 From: Alejandro Gomez Date: Fri, 10 Feb 2023 00:46:59 +0100 Subject: [PATCH] don't leave relays feed open --- src/Element/Zap.css | 2 +- src/Feed/RelaysFeed.tsx | 2 +- src/Pages/messages.js | 2 -- src/translations/es.json | 2 -- src/translations/fr.json | 2 -- src/translations/ja.json | 1 - src/translations/zh.json | 2 -- 7 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/Element/Zap.css b/src/Element/Zap.css index dfc7bedd..d934e65c 100644 --- a/src/Element/Zap.css +++ b/src/Element/Zap.css @@ -17,7 +17,7 @@ @media (max-width: 520px) { .zap .header .amount { - font-size: 21px; + font-size: 16px; } } diff --git a/src/Feed/RelaysFeed.tsx b/src/Feed/RelaysFeed.tsx index 771fa913..4ad25184 100644 --- a/src/Feed/RelaysFeed.tsx +++ b/src/Feed/RelaysFeed.tsx @@ -15,7 +15,7 @@ export default function useRelaysFeed(pubkey: HexKey) { return x; }, [pubkey]); - const relays = useSubscription(sub, { leaveOpen: true, cache: true }); + const relays = useSubscription(sub, { leaveOpen: false, cache: true }); const notes = relays.store.notes; const tags = notes.slice(-1)[0]?.tags || []; return tags.reduce((rs, tag) => { diff --git a/src/Pages/messages.js b/src/Pages/messages.js index 13e2d269..6794b9ef 100644 --- a/src/Pages/messages.js +++ b/src/Pages/messages.js @@ -12,7 +12,6 @@ export default defineMessages({ Followers: "Followers", Follows: "Follows", Zaps: "Zaps", - ZapsCount: "{n} Zaps", Muted: "Muted", Blocked: "Blocked", Sats: "{n} {n, plural, =1 {sat} other {sats}}", @@ -31,5 +30,4 @@ export default defineMessages({ SnortSocialNip: `Our very own NIP-05 verification service, help support the development of this site and get a shiny special badge on our site!`, NostrPlebsNip: `Nostr Plebs is one of the first NIP-05 providers in the space and offers a good collection of domains at reasonable prices`, Relays: "Relays", - RelaysCount: "{n} Relays", }); diff --git a/src/translations/es.json b/src/translations/es.json index d334f80f..dd9e7630 100644 --- a/src/translations/es.json +++ b/src/translations/es.json @@ -112,14 +112,12 @@ "Pages.Posts": "Notas", "Pages.Reactions": "Reacciones", "Pages.Relays": "", - "Pages.RelaysCount": "", "Pages.Sats": "{n} {n, plural, =1 {sat} other {sats}}", "Pages.Search": "Búsqueda", "Pages.SearchPlaceholder": "Buscar...", "Pages.Settings": "Configuración", "Pages.SnortSocialNip": "Nuestro servicio de verificación NIP-05, apoya el desarrollo de este proyecto y obtén una apariencia especial en nuestra web!", "Pages.Zaps": "Zaps", - "Pages.ZapsCount": "", "Pages.new.Bitcoin": "", "Pages.new.Check": "", "Pages.new.DigitalSignatures": "", diff --git a/src/translations/fr.json b/src/translations/fr.json index 226dede0..d8948235 100644 --- a/src/translations/fr.json +++ b/src/translations/fr.json @@ -111,14 +111,12 @@ "Pages.Posts": "Publications", "Pages.Reactions": "Réactions", "Pages.Relays": "", - "Pages.RelaysCount": "", "Pages.Sats": "{n} {n, plural, =1 {sat} other {sats}}", "Pages.Search": "Chercher", "Pages.SearchPlaceholder": "Chercher...", "Pages.Settings": "Paramètres", "Pages.SnortSocialNip": "Notre propre service de vérification NIP-05, aidez à soutenir le développement de ce site et obtenez un badge spécial brillant sur notre site !", "Pages.Zaps": "Zaps", - "Pages.ZapsCount": "", "Pages.new.Bitcoin": "", "Pages.new.Check": "", "Pages.new.DigitalSignatures": "", diff --git a/src/translations/ja.json b/src/translations/ja.json index 54c5e5c4..aa7f0728 100644 --- a/src/translations/ja.json +++ b/src/translations/ja.json @@ -118,7 +118,6 @@ "Pages.Settings": "設定", "Pages.SnortSocialNip": "私たち独自のNIP-05認証サービスです。このサイトの開発を支援し、ピカピカの特別なバッジを私たちのサイトで使えるようになります!", "Pages.Zaps": "Zap", - "Pages.ZapsCount": "", "Pages.new.Bitcoin": "", "Pages.new.Check": "", "Pages.new.DigitalSignatures": "", diff --git a/src/translations/zh.json b/src/translations/zh.json index da4d0fc6..6ad2e461 100644 --- a/src/translations/zh.json +++ b/src/translations/zh.json @@ -112,14 +112,12 @@ "Pages.Posts": "", "Pages.Reactions": "", "Pages.Relays": "", - "Pages.RelaysCount": "", "Pages.Sats": "", "Pages.Search": "", "Pages.SearchPlaceholder": "", "Pages.Settings": "", "Pages.SnortSocialNip": "", "Pages.Zaps": "", - "Pages.ZapsCount": "", "Pages.new.Bitcoin": "", "Pages.new.Check": "", "Pages.new.DigitalSignatures": "",