design: improve posts
This commit is contained in:
10 files changed
+67
-28
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user