design: consistency improvements
This commit is contained in:
8 files changed
+51
-45
No files matched your search
@@ -22,6 +22,7 @@
|
||||
import { settings } from '$lib/settings.svelte'
|
||||
import { optimizeImageURL } from './post/helpers'
|
||||
import Link from '../input/Link.svelte'
|
||||
import EndPlaceholder from '../ui/EndPlaceholder.svelte'
|
||||
|
||||
interface Props {
|
||||
site: SiteView
|
||||
@@ -76,9 +77,11 @@
|
||||
<hr class="border-slate-200 dark:border-zinc-900 my-1" />
|
||||
<Expandable bind:open={settings.expand.about}>
|
||||
{#snippet title()}
|
||||
<span class="flex items-center gap-1 py-1 px-2">
|
||||
<Icon src={InformationCircle} size="16" mini />
|
||||
<span class="flex items-center gap-1 py-1 px-2 w-full">
|
||||
{$t('cards.site.about')}
|
||||
<hr
|
||||
class="w-full flex-1 ml-1 border-slate-200 dark:border-zinc-800"
|
||||
/>
|
||||
</span>
|
||||
{/snippet}
|
||||
<Markdown source={site.site.description} />
|
||||
@@ -89,9 +92,11 @@
|
||||
<hr class="border-slate-200 dark:border-zinc-900 my-1" />
|
||||
<Expandable bind:open={settings.expand.stats}>
|
||||
{#snippet title()}
|
||||
<span class="flex items-center gap-1 py-1 px-2">
|
||||
<Icon src={ChartBar} size="16" mini />
|
||||
<span class="flex items-center gap-1 py-1 px-2 w-full">
|
||||
{$t('cards.site.stats')}
|
||||
<hr
|
||||
class="w-full flex-1 ml-1 border-slate-200 dark:border-zinc-800"
|
||||
/>
|
||||
</span>
|
||||
{/snippet}
|
||||
<div class="flex flex-row gap-4 flex-wrap">
|
||||
@@ -117,9 +122,11 @@
|
||||
<hr class="border-slate-200 dark:border-zinc-900 my-1" />
|
||||
<Expandable bind:open={settings.expand.team}>
|
||||
{#snippet title()}
|
||||
<span class="flex items-center gap-1 py-1 px-2">
|
||||
<Icon src={UserGroup} size="16" mini />
|
||||
<span class="flex items-center gap-1 py-1 px-2 w-full">
|
||||
{$t('cards.site.admins')}
|
||||
<hr
|
||||
class="w-full flex-1 ml-1 border-slate-200 dark:border-zinc-800"
|
||||
/>
|
||||
</span>
|
||||
{/snippet}
|
||||
<ItemList
|
||||
|
||||
@@ -172,9 +172,11 @@
|
||||
<hr class="border-slate-200 dark:border-zinc-900 my-1" />
|
||||
<Expandable bind:open={settings.expand.about} class="!pt-0">
|
||||
{#snippet title()}
|
||||
<span class="py-1 px-1 flex gap-1 items-center">
|
||||
<Icon src={InformationCircle} size="15" mini />
|
||||
<span class="py-1 px-1 flex gap-1 items-center w-full">
|
||||
{$t('cards.site.about')}
|
||||
<hr
|
||||
class="w-full flex-1 ml-1 border-slate-200 dark:border-zinc-800"
|
||||
/>
|
||||
</span>
|
||||
{/snippet}
|
||||
<Markdown source={community_view.community.description} />
|
||||
@@ -183,9 +185,11 @@
|
||||
<hr class="border-slate-200 dark:border-zinc-900 my-1" />
|
||||
<Expandable bind:open={settings.expand.stats}>
|
||||
{#snippet title()}
|
||||
<span class="py-1 px-1 flex gap-1 items-center">
|
||||
<Icon src={ChartBar} size="15" mini />
|
||||
<span class="py-1 px-1 flex gap-1 items-center w-full">
|
||||
{$t('cards.site.stats')}
|
||||
<hr
|
||||
class="w-full flex-1 ml-1 border-slate-200 dark:border-zinc-800"
|
||||
/>
|
||||
</span>
|
||||
{/snippet}
|
||||
<div class="flex flex-row gap-4 flex-wrap">
|
||||
@@ -206,9 +210,12 @@
|
||||
<hr class="border-slate-200 dark:border-zinc-900 my-1" />
|
||||
<Expandable bind:open={settings.expand.team}>
|
||||
{#snippet title()}
|
||||
<span class="py-1 px-1 flex gap-1 items-center">
|
||||
<ShieldIcon width={15} filled />
|
||||
<span class="py-1 px-1 flex gap-1 items-center w-full">
|
||||
{$t('cards.community.moderators')}
|
||||
|
||||
<hr
|
||||
class="w-full flex-1 ml-1 border-slate-200 dark:border-zinc-800"
|
||||
/>
|
||||
</span>
|
||||
{/snippet}
|
||||
<ItemList
|
||||
@@ -231,11 +238,12 @@
|
||||
disabled={loading.subscribing}
|
||||
loading={loading.subscribing}
|
||||
size="md"
|
||||
rounding="xl"
|
||||
color={community_view.subscribed == 'Subscribed'
|
||||
? 'secondary'
|
||||
: 'primary'}
|
||||
onclick={subscribe}
|
||||
class="flex-1 relative z-[inherit]"
|
||||
class="px-5 relative z-[inherit]"
|
||||
>
|
||||
{#snippet prefix()}
|
||||
<Icon
|
||||
@@ -265,7 +273,7 @@
|
||||
{/if}
|
||||
<Menu placement="top-end">
|
||||
{#snippet target()}
|
||||
<Button size="square-md" class="ml-auto">
|
||||
<Button size="square-md">
|
||||
{#snippet prefix()}
|
||||
<Icon src={EllipsisHorizontal} size="16" mini />
|
||||
{/snippet}
|
||||
|
||||
Reference in new issue
Block a user