feat: make comment items and posts consistent

This commit is contained in:
Xyphyn committed 2023-09-17 14:57:52 -07:00
1 parent 30d5dc9bf2
commit ae09c5ab92
5 files changed
+39 -27

No files matched your search

@@ -2,13 +2,21 @@
import Comment from '$lib/components/lemmy/comment/Comment.svelte'
import PostMeta from '$lib/components/lemmy/post/PostMeta.svelte'
import { getInstance } from '$lib/lemmy.js'
import { userSettings } from '$lib/settings.js'
import type { CommentView } from 'lemmy-js-client'
import { Button, Material } from 'mono-svelte'
export let comment: CommentView
export let view = $userSettings.view
</script>
<Material class="flex flex-col flex-1 gap-1" color="distinct" padding="lg">
<Material
class="flex flex-col flex-1 gap-1 {view == 'list' || view == 'compact'
? '!bg-transparent !border-0 rounded-none'
: 'p-5'} {view == 'list' ? 'py-5' : view == 'compact' ? 'py-4' : ''}"
color="distinct"
padding="none"
>
<div class="flex flex-row justify-between items-center">
<PostMeta
community={comment.community}