app

Local-first trade for farms and co-ops
git clone https://radroots.dev/git/app.git
Log | Files | Refs | README | LICENSE

commit 0830aeaadb118857a2f88d87804d9a4fa2521062
parent 032614ef3c7442f31256d1856ad8f0acd74f5c89
Author: triesap <137732411+triesap@users.noreply.github.com>
Date:   Thu,  3 Oct 2024 08:50:27 +0000

Edit nostr relay view route, edit styles

Diffstat:
Msrc/routes/(app)/models/nostr-relay/view/+page.svelte | 18+++++++++++++-----
Mtailwind.config.ts | 4++--
2 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/src/routes/(app)/models/nostr-relay/view/+page.svelte b/src/routes/(app)/models/nostr-relay/view/+page.svelte @@ -8,6 +8,7 @@ LayoutTrellis, LayoutView, Nav, + nostr_relays_connected, qp_id, t, Trellis, @@ -63,7 +64,7 @@ args: { layer: 1, title: { - value: `${$t(`common.relay`)}`, + value: `${$t(`common.url`)}`, }, list: [ { @@ -96,10 +97,17 @@ touch: { label: { left: [ - { - classes: `text-success`, - value: `${$t(`common.connected`)}`, - }, + $nostr_relays_connected.includes( + ld.nostr_relay.id, + ) + ? { + classes: `text-success font-[500]`, + value: `${$t(`common.connected`)}`, + } + : { + classes: `text-red-500 font-[500]`, + value: `${$t(`common.not_connected`)}`, + }, ], }, }, diff --git a/tailwind.config.ts b/tailwind.config.ts @@ -61,8 +61,8 @@ const config: Config = { envelopeTitle: ["1.05rem", { lineHeight: "1.75rem", fontWeight: 600 }], envelopeTitlePrevious: ["1.02rem", { lineHeight: "1.75rem", fontWeight: 400 }], envelopeTitleAction: ["1.02rem", { lineHeight: "1.75rem", fontWeight: 500 }], - envelopeButtonCancel: ["1.02rem", { lineHeight: "1.75rem", fontWeight: 600 }], - envelopeButtonLabel: ["1.02rem", { lineHeight: "1.75rem", fontWeight: 500 }], + envelopeButtonCancel: ["1.1rem", { lineHeight: "1.75rem", fontWeight: 600 }], + envelopeButtonLabel: ["1.1rem", { lineHeight: "1.75rem", fontWeight: 500 }], }, height: { ...heights,