misc: justify-center on placeholder
This commit is contained in:
1 parent
b75675212f
commit
7c66fea335
2 files changed
+10
-5
No files matched your search
@@ -13,7 +13,7 @@
|
|||||||
padding-top: max(1.5rem, calc({$contentPadding.top}px));"
|
padding-top: max(1.5rem, calc({$contentPadding.top}px));"
|
||||||
>
|
>
|
||||||
<h1
|
<h1
|
||||||
class="text-3xl font-bold items-center gap-2 w-full
|
class="text-3xl font-bold flex items-center gap-2 w-full
|
||||||
{$userSettings.font == 'satoshi/nunito'
|
{$userSettings.font == 'satoshi/nunito'
|
||||||
? 'font-display'
|
? 'font-display'
|
||||||
: ''} {$$props.class ?? ''}"
|
: ''} {$$props.class ?? ''}"
|
||||||
|
|||||||
@@ -53,7 +53,10 @@
|
|||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<div class="flex flex-row gap-2">
|
<div class="flex flex-row gap-2">
|
||||||
<Header class="mr-auto">{$t('routes.inbox.title')}</Header>
|
<Header class="justify-between items-end">
|
||||||
|
{$t('routes.inbox.title')}
|
||||||
|
|
||||||
|
<div class="flex items-center gap-2">
|
||||||
<Button
|
<Button
|
||||||
on:click={() => goto($page.url, { invalidateAll: true })}
|
on:click={() => goto($page.url, { invalidateAll: true })}
|
||||||
size="square-md"
|
size="square-md"
|
||||||
@@ -66,14 +69,16 @@
|
|||||||
loading={markingAsRead}
|
loading={markingAsRead}
|
||||||
disabled={markingAsRead}
|
disabled={markingAsRead}
|
||||||
size="md"
|
size="md"
|
||||||
class="!h-8"
|
class="h-8"
|
||||||
>
|
>
|
||||||
<Icon src={Check} width={16} mini slot="prefix" />
|
<Icon src={Check} width={16} mini slot="prefix" />
|
||||||
{$t('routes.inbox.markAsRead')}
|
{$t('routes.inbox.markAsRead')}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
</Header>
|
||||||
|
</div>
|
||||||
<div class="mt-4" />
|
<div class="mt-4" />
|
||||||
<div class="flex flex-row gap-4 flex-wrap">
|
<div class="flex flex-row gap-4 flex-wrap items-end">
|
||||||
<Select
|
<Select
|
||||||
bind:value={data.unreadOnly}
|
bind:value={data.unreadOnly}
|
||||||
on:change={() =>
|
on:change={() =>
|
||||||
@@ -105,7 +110,7 @@
|
|||||||
<option value="messages">{$t('filter.inbox.messages')}</option>
|
<option value="messages">{$t('filter.inbox.messages')}</option>
|
||||||
</Select>
|
</Select>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-col gap-4 list-none my-4 flex-1 h-full">
|
<div class="flex flex-col gap-4 list-none flex-1 h-full justify-center mt-4">
|
||||||
{#if !data.data || (data.data?.length ?? 0) == 0}
|
{#if !data.data || (data.data?.length ?? 0) == 0}
|
||||||
<Placeholder
|
<Placeholder
|
||||||
icon={Inbox}
|
icon={Inbox}
|
||||||
|
|||||||
Reference in new issue
Block a user