commit bf0caf4380b506cd215106e8c42a8fa19d218ca8
parent d98cba03ef7bc1f1db2868721d69f021b76b21e7
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:
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,