feat: Add notification for unreads
This commit is contained in:
1 parent
28d9820b1e
commit
1a0881f9ce
13 files changed
+215
-105
No files matched your search
@@ -2,15 +2,21 @@
|
||||
import Link from '$lib/components/input/Link.svelte'
|
||||
import Comment from '$lib/components/lemmy/comment/Comment.svelte'
|
||||
import Card from '$lib/components/ui/Card.svelte'
|
||||
import type { CommentReplyView, PersonMentionView } from 'lemmy-js-client'
|
||||
import type {
|
||||
CommentReplyView,
|
||||
PersonMentionView,
|
||||
PrivateMessageView,
|
||||
} from 'lemmy-js-client'
|
||||
|
||||
export let item: CommentReplyView | PersonMentionView
|
||||
export let read: boolean
|
||||
</script>
|
||||
|
||||
<Card class="flex flex-col bg-white rounded-md p-4 max-w-full">
|
||||
<div class="flex flex-row items-center">
|
||||
<div
|
||||
class="text-sm max-w-[80ch] whitespace-nowrap text-ellipsis overflow-hidden"
|
||||
class="text-sm max-w-[80ch] whitespace-nowrap text-ellipsis
|
||||
overflow-hidden {read ? 'opacity-50' : ''}"
|
||||
>
|
||||
<span class="font-bold">
|
||||
{item.creator.display_name ?? item.creator.name}
|
||||
|
||||
Reference in new issue
Block a user