atproto explorer pdsls.dev
atproto tool

show blob count under list

juli.ee c54cfd20 8ada2b02

verified
Changed files
+7 -7
src
views
+7 -7
src/views/blob.tsx
···
return (
<div class="flex flex-col items-center gap-2">
<Show when={blobs() || response()}>
-
<p>
-
{blobs()?.length} blob{(blobs()?.length ?? 0 > 1) ? "s" : ""}
-
</p>
<div class="flex flex-col gap-0.5 font-mono text-sm wrap-anywhere lg:break-normal">
<For each={blobs()}>
{(cid) => (
···
</For>
</div>
</Show>
-
<Show when={cursor()}>
-
<div class="dark:bg-dark-500 fixed bottom-0 z-5 flex w-screen justify-center bg-neutral-100 py-3">
-
<Show when={!response.loading}>
+
<div class="dark:bg-dark-500 fixed bottom-0 z-5 flex w-screen justify-center bg-neutral-100 py-2">
+
<div class="flex flex-col items-center gap-1 pb-2">
+
<p>
+
{blobs()?.length} blob{(blobs()?.length ?? 0 > 1) ? "s" : ""}
+
</p>
+
<Show when={!response.loading && cursor()}>
<Button onClick={() => refetch()}>Load More</Button>
</Show>
<Show when={response.loading}>
<span class="iconify lucide--loader-circle animate-spin py-3.5 text-xl"></span>
</Show>
</div>
-
</Show>
+
</div>
</div>
);
};