design: improve posts

This commit is contained in:
James Xylight committed 2025-08-21 17:16:18 -07:00
1 parent 930bb93282
commit d3ef22dac2
10 files changed
+67 -28

No files matched your search

+5 -4
View File
@@ -134,7 +134,11 @@
{/snippet}
</Header>
<form class="accounts-grid mt-4 sm:mt-6 gap-4">
<CommonList items={profile.meta.profiles}>
<CommonList
selected={p => p.id == profile.meta.profile}
items={profile.meta.profiles}
animate={false}
>
{#snippet item(p, index)}
<label class="relative">
<input
@@ -149,9 +153,6 @@
class={[
'flex flex-row items-center gap-2 transition-all duration-75',
'cursor-pointer relative ring-transparent',
switching == p.id
? 'ring-slate-500 dark:ring-zinc-500'
: 'peer-checked:ring-primary-900 peer-checked:dark:ring-primary-100',
]}
>
<div
@@ -216,7 +216,6 @@
{/if}
{/await}
</article>
<hr class="-mx-3 sm:-mx-6 my-6 border-slate-200 dark:border-zinc-800" />
{#await data.comments.value then comments}
{#if data.thread.value.showContext || data.thread.value.singleThread}
<div
@@ -249,13 +248,15 @@
{/if}
{/await}
<section class="flex flex-col gap-2 w-full" id="comments">
<header>
<div class="text-base">
<span class="font-bold">
<FormattedNumber number={data.post.value.post_view.counts.comments} />
</span>
<header class="mt-4">
<EndPlaceholder size="md" color="none">
{$t('routes.post.commentCount')}
</div>
{#snippet action()}
<span class="font-bold">
<FormattedNumber number={data.post.value.post_view.counts.comments} />
</span>
{/snippet}
</EndPlaceholder>
</header>
{#if !page.url.searchParams.get('noVirtualize')}
<noscript>
@@ -64,7 +64,7 @@
{#if profile.current?.jwt}
{#if !commenting}
<EndPlaceholder>
<EndPlaceholder border={false}>
<Button
color="primary"
rounding="xl"