impr: fixes for fonts, cleanup dead features (#563)
* cleanup: use tailwindcss classes * design: de-emphasize unimportant terms in InboxItem * fix: button shadow appearing in situations it shouldnt * cleanup: remove tag rules * fix: fonts not applying correctly * fix: uncentered settings
This commit is contained in:
1 parent
a7159b0526
commit
472b4b9190
15 files changed
+59
-127
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { profile } from '$lib/auth.svelte'
|
||||
import { notifications, profile } from '$lib/auth.svelte'
|
||||
import { publishedToDate } from '$lib/components/util/date.js'
|
||||
import { getClient } from '$lib/lemmy.svelte.js'
|
||||
import {
|
||||
@@ -57,6 +57,14 @@ export async function load({ url, fetch }) {
|
||||
publishedToDate(a.published).getTime(),
|
||||
)
|
||||
|
||||
const totalNotifs = data.filter(i => !i.read).length
|
||||
|
||||
notifications.update(i => ({
|
||||
applications: i.applications,
|
||||
reports: i.reports,
|
||||
inbox: totalNotifs,
|
||||
}))
|
||||
|
||||
return {
|
||||
unreadOnly: unreadOnly,
|
||||
type: type,
|
||||
|
||||
Reference in new issue
Block a user