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

note future required code maintenance on js based view port checks

Jonas Jabari7663f2cee422
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 a588c4053fc..b235f13fb38 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
@@ -230,17 +230,17 @@ export default class IndexController extends Controller {
return this.element.querySelector('#work-package-journal-form-element');
}
- // TODO: get rid of static width value and reach for a more CSS based solution
+ // Code Maintenance: Get rid of these JS based view port checks when activities are rendered in fully primierized activity tab in all contexts
private isMobile():boolean {
return window.innerWidth < 1279;
}
- // TODO: get rid of static width value and reach for a more CSS based solution
+ // Code Maintenance: Get rid of these JS based view port checks when activities are rendered in fully primierized activity tab in all contexts
private isSmViewPort():boolean {
return window.innerWidth < 543;
}
- // TODO: get rid of static width value and reach for a more CSS based solution
+ // Code Maintenance: Get rid of these JS based view port checks when activities are rendered in fully primierized activity tab in all contexts
private isMdViewPort():boolean {
return window.innerWidth >= 543 && window.innerWidth < 1279;
}