Improve relay access checks, content loading

This commit is contained in:
Jon Staab
2024-10-10 17:09:01 -07:00
parent 83d892afc3
commit 597ebddf82
14 changed files with 127 additions and 104 deletions
+1 -1
View File
@@ -48,7 +48,7 @@
{@const following = getPubkeyTagValues(getListTags($userFollows)).includes(pubkey)}
<div class="divider" />
<Button class="chat chat-start" on:click={onClick}>
<div class="chat-bubble">
<div class="chat-bubble text-left bg-alt">
<Content hideMedia={!following} {event} />
<p class="text-right text-xs">{formatTimestamp(event.created_at)}</p>
</div>
+1 -1
View File
@@ -7,5 +7,5 @@
</script>
{#if $relay?.profile?.description}
<p>{$relay?.profile.description}</p>
<p class={$$props.class}>{$relay?.profile.description}</p>
{/if}
+1 -1
View File
@@ -58,7 +58,7 @@
<Icon icon="alt-arrow-left" />
Go back
</Button>
<Button type="submit" class="btn btn-primary">
<Button type="submit" class="btn btn-primary" disabled={loading}>
Go to Space
<Icon icon="alt-arrow-right" class="!bg-base-300" />
</Button>
+4 -4
View File
@@ -5,8 +5,8 @@
{#if $toast}
{@const theme = $toast.theme || "info"}
{#key $toast.id}
<div transition:fly class="toast z-toast">
<div transition:fly class="toast z-toast">
{#key $toast.id}
<div
role="alert"
class="alert flex justify-center"
@@ -14,6 +14,6 @@
class:alert-error={theme === "error"}>
{$toast.message}
</div>
</div>
{/key}
{/key}
</div>
{/if}