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

Adjust some spacings for the notification row

Henriette Darge4ce17b06d175
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 22b88638104..57fb314fb22 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
@@ -73,6 +73,7 @@ $subject-font-size: 14px
grid-area: count
@include indicator-bubble
justify-self: flex-end
+ margin-right: 5px
&--reason
grid-area: reason
@@ -84,6 +85,7 @@ $subject-font-size: 14px
@include text-shortener
color: var(--gray-dark)
max-width: 100%
+ line-height: 16px
&--status
grid-area: status
diff --git a/frontend/src/app/features/in-app-notifications/entry/status/in-app-notification-status.component.sass b/frontend/src/app/features/in-app-notifications/entry/status/in-app-notification-status.component.sass
index a14ccf03f8b..6f63ca8c74d 100644
--- a/frontend/src/app/features/in-app-notifications/entry/status/in-app-notification-status.component.sass
+++ b/frontend/src/app/features/in-app-notifications/entry/status/in-app-notification-status.component.sass
@@ -3,6 +3,7 @@
.op-ian-wp-status
@include text-shortener(false)
margin-bottom: 0
+ padding: 0 5px
border: none
border-radius: 2px
color: white
diff --git a/spec/features/notifications/notification_center/notification_center_spec.rb b/spec/features/notifications/notification_center/notification_center_spec.rb
index 05040b93e4e..616bd2e1db6 100644
--- a/spec/features/notifications/notification_center/notification_center_spec.rb
+++ b/spec/features/notifications/notification_center/notification_center_spec.rb
@@ -123,7 +123,12 @@ describe "Notification center", type: :feature, js: true do
split_screen.expect_open
center.mark_notification_as_read fourth_notification
- expect(notification.reload.read_ian).to be_truthy
+
+ retry_block do
+ notification.reload
+ raise "Expected notification to be marked read" unless notification.read_ian
+ end
+
expect(second_notification.reload.read_ian).to be_falsey
expect(third_notification.reload.read_ian).to be_falsey
expect(fourth_notification.reload.read_ian).to be_truthy