fix: modlog styling (#574)

* fix: modlog styling

* design: use unified header design
This commit is contained in:
Xylight authored and GitHub committed 2025-06-15 10:57:12 -07:00
1 parent 346d89f7cc
commit 7744efd963
3 files changed
+6 -3

No files matched your search

+4 -1
View File
@@ -22,6 +22,7 @@
} from 'svelte-hero-icons' } from 'svelte-hero-icons'
import ModlogItemCard from './item/ModlogItemCard.svelte' import ModlogItemCard from './item/ModlogItemCard.svelte'
import ModlogItemTable from './item/ModlogItemTable.svelte' import ModlogItemTable from './item/ModlogItemTable.svelte'
import Header from '$lib/components/ui/layout/pages/Header.svelte'
let { data = $bindable() } = $props() let { data = $bindable() } = $props()
@@ -44,7 +45,7 @@
</svelte:head> </svelte:head>
<div class="flex flex-col gap-4"> <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"> <div class="flex flex-row flex-wrap gap-2">
<Select <Select
bind:value={data.type} bind:value={data.type}
@@ -220,6 +221,8 @@
</div> </div>
<style lang="postcss"> <style lang="postcss">
@reference '../../style/app.css'
:global(.table thead tr th) { :global(.table thead tr th) {
@apply border border-slate-200 dark:border-zinc-800 px-4 py-2 bg-slate-100; @apply border border-slate-200 dark:border-zinc-800 px-4 py-2 bg-slate-100;
} }
+1 -1
View File
@@ -217,7 +217,7 @@ export async function load({ url }) {
const results = await getClient(instance).getModlog({ const results = await getClient(instance).getModlog({
community_id: community, community_id: community,
limit: 40, limit: 20,
type_: type, type_: type,
page: page, page: page,
mod_person_id: modId, mod_person_id: modId,
+1 -1
View File
@@ -15,7 +15,7 @@
let { item }: Props = $props() let { item }: Props = $props()
</script> </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"> <div class="flex flex-row justify-between flex-wrap gap-2">
{#if item.community} {#if item.community}
<CommunityLink community={item.community} avatar showInstance /> <CommunityLink community={item.community} avatar showInstance />