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

added missing condition for notification center, should scroll to bottom on mobile when in notification center

Jonas Jabari62a8ad71791a
diff --git a/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts b/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts
index 4523445b58b..7cd2d181a93 100644
--- a/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts
+++ b/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts
@@ -350,7 +350,7 @@ export default class IndexController extends Controller {
if (window.location.hash.includes('#activity-')) {
const activityId = window.location.hash.replace('#activity-', '');
this.scrollToActivity(activityId);
- } else if (this.sortingValue === 'asc' && !this.isMobile()) {
+ } else if (this.sortingValue === 'asc' && (!this.isMobile() || this.isWithinNotificationCenter())) {
this.scrollToBottom();
}
}