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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
use class instead of adding style attribute
bsatarnejadf2337f29aa16
diff --git a/frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.sass b/frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.sassindex c95b2506db0..af5d36d7257 100644--- a/frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.sass+++ b/frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.sass@@ -16,3 +16,7 @@&--avatarflex-shrink: 0++ &--unread-notification-bubble+ &_scrolled+ scroll-margin-top: 200pxdiff --git a/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-base.controller.ts b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-base.controller.tsindex b660af547f7..135533d82f4 100644--- a/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-base.controller.ts+++ b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-base.controller.ts@@ -147,12 +147,12 @@ export class ActivityPanelBaseController extends UntilDestroyedMixin implementsif (!(window.location.href.indexOf('activity#') > -1)) {const unreadNotifications = document.querySelectorAll('[data-qa-selector="user-activity-bubble"]');const unreadNotificationsLength = unreadNotifications?.length;- if (unreadNotificationsLength) {+ if (unreadNotificationsLength && this.notifications.length) {if (this.reverse) {- unreadNotifications[unreadNotificationsLength - 1].setAttribute('style', 'scroll-margin-top: 200px;');+ unreadNotifications[unreadNotificationsLength - 1].classList.add('op-user-activity--unread-notification-bubble_scrolled');unreadNotifications[unreadNotificationsLength - 1].scrollIntoView();} else {- unreadNotifications[0].setAttribute('style', 'scroll-margin-top: 200px;');+ unreadNotifications[0].classList.add('op-user-activity--unread-notification-bubble_scrolled');unreadNotifications[0].scrollIntoView();}}