diff --git a/files/templates/notifications.html b/files/templates/notifications.html
index 3deb9203c6..f0825c1bb0 100644
--- a/files/templates/notifications.html
+++ b/files/templates/notifications.html
@@ -158,9 +158,11 @@
.comment {
margin-top: 0;
}
- .unread {
- margin-bottom: 1rem;
- }
+ {% if request.path in ('/notifications/mesages', '/notifications/modmail') %}
+ .unread {
+ margin-bottom: 1rem;
+ }
+ {% endif %}
{% endblock %}