fix: use pageheader where needed

This commit is contained in:
Xylight committed 2024-07-27 13:14:26 -07:00
1 parent 7c66fea335
commit 1ab3f404cc
28 files changed
+132 -135

No files matched your search

+20 -18
View File
@@ -21,24 +21,26 @@
</script>
<div class="mb-4 flex flex-col gap-4">
<Header>{$t('routes.moderation.title')}</Header>
<div class="flex flex-row gap-2 flex-wrap items-center">
<Select
bind:value={data.type}
on:change={() => searchParam($page.url, 'type', data.type, 'page')}
>
<span slot="label" class="flex items-center gap-1">
<Icon src={Funnel} size="15" mini />
{$t('filter.filter')}
</span>
<option value="all">{$t('filter.location.all')}</option>
<option value="unread">{$t('filter.unread')}</option>
</Select>
<Button href="/modlog" class="h-max ml-auto">
<Icon src={Newspaper} size="16" mini />
{$t('routes.modlog')}
</Button>
</div>
<Header pageHeader>
{$t('routes.moderation.title')}
<div class="flex flex-row gap-2 flex-wrap items-end" slot="extended">
<Select
bind:value={data.type}
on:change={() => searchParam($page.url, 'type', data.type, 'page')}
>
<span slot="label" class="flex items-center gap-1">
<Icon src={Funnel} size="15" mini />
{$t('filter.filter')}
</span>
<option value="all">{$t('filter.location.all')}</option>
<option value="unread">{$t('filter.unread')}</option>
</Select>
<Button href="/modlog" class="h-max ml-auto">
<Icon src={Newspaper} size="16" mini />
{$t('routes.modlog')}
</Button>
</div>
</Header>
</div>
{#if data.items && data.items.length > 0}
<div class="flex flex-col gap-4">