fix: modlog styling (#574)
* fix: modlog styling * design: use unified header design
This commit is contained in:
1 parent
346d89f7cc
commit
7744efd963
3 files changed
+6
-3
No files matched your search
@@ -22,6 +22,7 @@
|
||||
} from 'svelte-hero-icons'
|
||||
import ModlogItemCard from './item/ModlogItemCard.svelte'
|
||||
import ModlogItemTable from './item/ModlogItemTable.svelte'
|
||||
import Header from '$lib/components/ui/layout/pages/Header.svelte'
|
||||
|
||||
let { data = $bindable() } = $props()
|
||||
|
||||
@@ -44,7 +45,7 @@
|
||||
</svelte:head>
|
||||
|
||||
<div class="flex flex-col gap-4">
|
||||
<h1 class="font-bold text-2xl">Modlog</h1>
|
||||
<Header pageHeader>Modlog</Header>
|
||||
<div class="flex flex-row flex-wrap gap-2">
|
||||
<Select
|
||||
bind:value={data.type}
|
||||
@@ -220,6 +221,8 @@
|
||||
</div>
|
||||
|
||||
<style lang="postcss">
|
||||
@reference '../../style/app.css'
|
||||
|
||||
:global(.table thead tr th) {
|
||||
@apply border border-slate-200 dark:border-zinc-800 px-4 py-2 bg-slate-100;
|
||||
}
|
||||
|
||||
@@ -217,7 +217,7 @@ export async function load({ url }) {
|
||||
|
||||
const results = await getClient(instance).getModlog({
|
||||
community_id: community,
|
||||
limit: 40,
|
||||
limit: 20,
|
||||
type_: type,
|
||||
page: page,
|
||||
mod_person_id: modId,
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
let { item }: Props = $props()
|
||||
</script>
|
||||
|
||||
<Material padding="lg" class="flex flex-col gap-2">
|
||||
<Material color="uniform" rounding="2xl" class="flex flex-col">
|
||||
<div class="flex flex-row justify-between flex-wrap gap-2">
|
||||
{#if item.community}
|
||||
<CommunityLink community={item.community} avatar showInstance />
|
||||
|
||||
Reference in new issue
Block a user