feat: switch from card to material

This commit is contained in:
Xyphyn committed 2023-09-04 11:27:19 -07:00
1 parent 43b0e87ebf
commit c53ec52d86
16 files changed
+61 -126

No files matched your search

-1
View File
@@ -4,7 +4,6 @@
import { page } from '$app/stores'
import ObjectAutocomplete from '$lib/components/lemmy/ObjectAutocomplete.svelte'
import { profile } from '$lib/auth.js'
import MultiSelect from '$lib/components/input/MultiSelect.svelte'
import { userSettings } from '$lib/settings.js'
import ModlogItemCard from './item/ModlogItemCard.svelte'
import ModlogItemTable from './item/ModlogItemTable.svelte'
+3 -3
View File
@@ -3,16 +3,16 @@
import CommunityLink from '$lib/components/lemmy/community/CommunityLink.svelte'
import ShieldIcon from '$lib/components/lemmy/moderation/ShieldIcon.svelte'
import UserLink from '$lib/components/lemmy/user/UserLink.svelte'
import Card from '$lib/components/ui/Card.svelte'
import SectionTitle from '$lib/components/ui/SectionTitle.svelte'
import RelativeDate from '$lib/components/util/RelativeDate.svelte'
import { Material } from 'mono-svelte'
import type { ModLog } from '../+page.js'
import ModlogAction from '../ModlogAction.svelte'
export let item: ModLog
</script>
<Card elevation={0} class="p-5 flex flex-col gap-2 text-sm">
<Material padding="lg" class="flex flex-col gap-2">
<div class="flex flex-row justify-between flex-wrap gap-2">
{#if item.community}
<CommunityLink community={item.community} avatar showInstance />
@@ -58,4 +58,4 @@
<SectionTitle class="mt-2">Reason</SectionTitle>
<p>{item.reason}</p>
{/if}
</Card>
</Material>