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

Merge pull request #17721 from opf/feature/60875-introduce-comment-copy-link-drawn-from-the-comment-id-replacing-sequenced-activity-numbers

Kabiru Mwenjab5219252f249
diff --cc frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts
index 1231ef8c258,4adad055b82..292ee70945f
--- 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
@@@ -471,11 -481,12 +482,15 @@@ export default class IndexController ex
return document.querySelector('.tabcontent') as HTMLElement;
}
+ private getActivityAnchorElement(activityAnchorName:AnchorType, activityId:string):HTMLElement | null {
+ return document.querySelector(`[data-anchor-${activityAnchorName}-id="${activityId}"]`);
+ }
+
// Code Maintenance: Get rid of this JS based view port checks when activities are rendered in fully primierized activity tab in all contexts
private isMobile():boolean {
+ if (this.isWithinNotificationCenter() || this.isWithinSplitScreen()) {
+ return window.innerWidth < 1013;
+ }
return window.innerWidth < 1279;
}