feat: Add the option to fade the title of read posts

This commit is contained in:
Xyphyn committed 2023-07-17 11:05:06 -07:00
1 parent 953c65021e
commit 108b744746
4 files changed
+11 -2

No files matched your search

+3 -1
View File
@@ -17,6 +17,7 @@
Link,
Trash,
} from 'svelte-hero-icons'
import { userSettings } from '$lib/settings.js'
let postRes: PostView
export { postRes as post }
@@ -74,7 +75,8 @@
</span>
<a
href="/post/{getInstance()}/{postRes.post.id}"
class="font-bold {postRes.read ? 'opacity-50' : ''}"
class="font-bold"
class:opacity-50={postRes.read && $userSettings.markReadPosts}
>
{postRes.post.name}
</a>