Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Increase visual difference between read and unread notifications in the center

Henriette Darge326dc8d1f0e8
diff --git a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.html b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.html
index daa104af2d3..f056bcfebd8 100644
--- a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.html
+++ b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.html
@@ -42,6 +42,7 @@
</div>
<span
+ *ngIf="!notification.readIAN"
class="op-ian-item--reason-count"
[textContent]="aggregatedNotifications.length"
></span>
diff --git a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sass b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sass
index 29d3c426056..ff0049ab11e 100644
--- a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sass
+++ b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sass
@@ -2,6 +2,8 @@
$ian-bg-color: #FFFFFF
$ian-bg-hover-color: var(--gray-light)
+$ian-bg-read-color: #F3F3F3
+$ian-bg-read-hover-color: darken($ian-bg-read-color, 2)
$ian-bg-selected-color: #D1E5F5
$ian-bg-selected-hover-color: darken($ian-bg-selected-color, 2)
// This needs to be set in the itemSize of
@@ -27,10 +29,14 @@ $subject-font-size: 14px
&_selected
background: $ian-bg-selected-color
-
&:hover
background: $ian-bg-selected-hover-color
+ &_read
+ background: $ian-bg-read-color
+ &:hover
+ background: $ian-bg-read-hover-color
+
&--row
@include unset-button-styles
width: 100%