design: improve menu buttons
This commit is contained in:
4 files changed
+15
-14
No files matched your search
@@ -53,7 +53,7 @@
|
|||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="flex flex-col px-0 list-none bg-white/80 dark:bg-zinc-900/90 rounded-2xl
|
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)}
|
{@render children?.(open)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
size="custom"
|
size="custom"
|
||||||
rounding="none"
|
rounding="none"
|
||||||
class={[
|
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',
|
disabled && 'opacity-70 pointer-events-none cursor-not-allowed',
|
||||||
color == 'tertiary' && 'dark:hover:bg-zinc-800/70',
|
color == 'tertiary' && 'dark:hover:bg-zinc-800/70',
|
||||||
clazz,
|
clazz,
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
<div
|
<div
|
||||||
class={[
|
class={[
|
||||||
'contents shrink-0',
|
'contents shrink-0',
|
||||||
color == 'tertiary' && 'text-slate-500 dark:text-zinc-500',
|
color == 'tertiary' && 'text-slate-600 dark:text-zinc-400',
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
{#if icon}
|
{#if icon}
|
||||||
|
|||||||
@@ -191,17 +191,14 @@
|
|||||||
{#if crossposts?.length > 0}
|
{#if crossposts?.length > 0}
|
||||||
<Expandable class="text-base mt-2 w-full cursor-pointer">
|
<Expandable class="text-base mt-2 w-full cursor-pointer">
|
||||||
{#snippet title()}
|
{#snippet title()}
|
||||||
<div
|
<EndPlaceholder size="md" color="none" class="w-full">
|
||||||
class={[
|
|
||||||
'flex items-center gap-1 w-full text-left text-base font-normal',
|
|
||||||
]}
|
|
||||||
>
|
|
||||||
<span class="font-bold">{crossposts.length}</span>
|
|
||||||
{$t('routes.post.crosspostCount')}
|
{$t('routes.post.crosspostCount')}
|
||||||
<hr
|
{#snippet action()}
|
||||||
class="flex-1 inline-block w-full border-slate-200 dark:border-zinc-800 mx-3"
|
<span class="font-bold">
|
||||||
/>
|
<FormattedNumber number={crossposts.length} />
|
||||||
</div>
|
</span>
|
||||||
|
{/snippet}
|
||||||
|
</EndPlaceholder>
|
||||||
{/snippet}
|
{/snippet}
|
||||||
<div
|
<div
|
||||||
class="divide-y! divide-slate-200 dark:divide-zinc-800 flex flex-col"
|
class="divide-y! divide-slate-200 dark:divide-zinc-800 flex flex-col"
|
||||||
|
|||||||
@@ -82,5 +82,9 @@
|
|||||||
</CommonList>
|
</CommonList>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="sticky z-30 mx-auto max-w-full bottom-22 lg:bottom-6">
|
<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>
|
</div>
|
||||||
Reference in new issue
Block a user