feat: Add the option to fade the title of read posts
This commit is contained in:
1 parent
953c65021e
commit
108b744746
4 files changed
+11
-2
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user