design: improve menu buttons

This commit is contained in:
James Xylight committed 2025-08-21 17:35:44 -07:00
1 parent d3ef22dac2
commit f5422f976b
4 files changed
+15 -14

No files matched your search

@@ -191,17 +191,14 @@
{#if crossposts?.length > 0}
<Expandable class="text-base mt-2 w-full cursor-pointer">
{#snippet title()}
<div
class={[
'flex items-center gap-1 w-full text-left text-base font-normal',
]}
>
<span class="font-bold">{crossposts.length}</span>
<EndPlaceholder size="md" color="none" class="w-full">
{$t('routes.post.crosspostCount')}
<hr
class="flex-1 inline-block w-full border-slate-200 dark:border-zinc-800 mx-3"
/>
</div>
{#snippet action()}
<span class="font-bold">
<FormattedNumber number={crossposts.length} />
</span>
{/snippet}
</EndPlaceholder>
{/snippet}
<div
class="divide-y! divide-slate-200 dark:divide-zinc-800 flex flex-col"
+5 -1
View File
@@ -82,5 +82,9 @@
</CommonList>
{/if}
<div class="sticky z-30 mx-auto max-w-full bottom-22 lg:bottom-6">
<Pageination href={page => `?page=${page}`} page={data.page} />
<Pageination
hasMore={data.data.length == 40}
href={page => `?page=${page}`}
page={data.page}
/>
</div>