design: improve menu buttons
This commit is contained in:
4 files changed
+15
-14
No files matched your search
@@ -53,7 +53,7 @@
|
||||
>
|
||||
<div
|
||||
class="flex flex-col px-0 list-none bg-white/80 dark:bg-zinc-900/90 rounded-2xl
|
||||
border border-slate-300 dark:border-zinc-800 border-opacity-50"
|
||||
border border-slate-300 dark:border-zinc-800 border-opacity-50 py-1"
|
||||
>
|
||||
{@render children?.(open)}
|
||||
</div>
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
size="custom"
|
||||
rounding="none"
|
||||
class={[
|
||||
'w-full px-4 py-2 min-h-7 font-normal duration-100',
|
||||
'w-full px-4.5 py-1.5 min-h-7 duration-100 font-normal',
|
||||
disabled && 'opacity-70 pointer-events-none cursor-not-allowed',
|
||||
color == 'tertiary' && 'dark:hover:bg-zinc-800/70',
|
||||
clazz,
|
||||
@@ -54,7 +54,7 @@
|
||||
<div
|
||||
class={[
|
||||
'contents shrink-0',
|
||||
color == 'tertiary' && 'text-slate-500 dark:text-zinc-500',
|
||||
color == 'tertiary' && 'text-slate-600 dark:text-zinc-400',
|
||||
]}
|
||||
>
|
||||
{#if icon}
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
Reference in new issue
Block a user