aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2024-06-17 12:38:44 +0000
committerr <r@freesoftwareextremist.com>2024-06-17 12:38:44 +0000
commite46d067866d3345d9e160fa50fd16af5430e2418 (patch)
tree8ac727c232256b0cbb60c4ae9ef6141bbd810d64
parent61c166b79570219a515bb3b8dd344a403708b371 (diff)
downloadbloat-e46d067866d3345d9e160fa50fd16af5430e2418.tar.gz
bloat-e46d067866d3345d9e160fa50fd16af5430e2418.zip
Fix bell icon notification
-rw-r--r--static/style.css9
-rw-r--r--templates/notification.tmpl5
2 files changed, 10 insertions, 4 deletions
diff --git a/static/style.css b/static/style.css
index 71f64d7..1f266d0 100644
--- a/static/style.css
+++ b/static/style.css
@@ -192,9 +192,12 @@ textarea {
opacity: 0.6;
}
-.notification-container.mention .status-content,
-.notification-container.mention .status-reply-container,
-.notification-container.mention .status-media-container {
+.notification-container.notification-mention .status-content,
+.notification-container.notification-mention .status-reply-container,
+.notification-container.notification-mention .status-media-container,
+.notification-container.notification-status .status-content,
+.notification-container.notification-status .status-reply-container,
+.notification-container.notification-status .status-media-container {
opacity: 1;
}
diff --git a/templates/notification.tmpl b/templates/notification.tmpl
index 395987e..5aaccb4 100644
--- a/templates/notification.tmpl
+++ b/templates/notification.tmpl
@@ -16,7 +16,7 @@
</form>
{{range .Notifications}}
-<article class="notification-container {{.Type}} {{if .Pleroma}}{{if not .Pleroma.IsSeen}}unread{{end}}{{end}}">
+<article class="notification-container notification-{{.Type}} {{if .Pleroma}}{{if not .Pleroma.IsSeen}}unread{{end}}{{end}}">
{{if eq .Type "follow"}}
<div class="user-list-item">
<div class="user-list-profile-img">
@@ -66,6 +66,9 @@
{{else if eq .Type "mention"}}
{{template "status" (WithContext .Status $.Ctx)}}
+ {{else if eq .Type "status"}}
+ {{template "status" (WithContext .Status $.Ctx)}}
+
{{else if eq .Type "reblog"}}
<div class="retweet-info">
<a class="img-link" href="/user/{{.Account.ID}}">