Skip to content

Commit

Permalink
fix profile in dark mode, add skeleton when operator feed hasn't loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Apr 13, 2024
1 parent c60abba commit d9cc3db
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
import { MY_RELAY_PAGE } from '$lib/contextKeys';
import type { Writable } from 'svelte/store';
import type { MRPRelay } from "$lib/core/relay";
import type { MRPUser } from '$lib/core/user';
import type { MRPRelay } from "$lib/core/MRPRelay";
import { MRPUser } from '$lib/core/MRPUser';
import type { NDKUserProfile } from '@nostr-dev-kit/ndk';
import Note from '$lib/components/partials/note.svelte';
import Skeleton from '$lib/components/ui/skeleton2/Skeleton.svelte';
export let key: string;
Expand Down Expand Up @@ -132,9 +133,13 @@
{/each}
</div>
{:else}
<div class="note min-h-max bg-white/90 px-5 py-3 pb-10 rounded-lg shadow transition-opacity duration-200 relative max-h-72 overflow-hidden text-3xl h-full mt-9 text-gray-300 italic flex items-center space-x-4 text-center">
{#if owner?.feed?.isComplete }
<div class="note min-h-max bg-white/90 dark:bg-black/90 px-5 py-3 pb-10 rounded-lg shadow transition-opacity duration-200 relative max-h-72 overflow-hidden text-3xl h-full mt-9 text-gray-300 italic flex items-center space-x-4 text-center">
seems the operator is quiet, no notes
</div>
{:else}
<Skeleton count={7} class="inline-block dark:hidden min-w-full" />
{/if}
{/if}
</div>
</div>
Expand Down

0 comments on commit d9cc3db

Please sign in to comment.