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
Apply two column class initially only when the view is wide enough
Henriette Dargeca339dd220e9
diff --git a/frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.component.ts b/frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.component.tsindex 644974bbd43..fb9baa52090 100644--- a/frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.component.ts@@ -267,6 +267,10 @@ export class WorkPackageSingleViewComponent extends UntilDestroyedMixin implemenreturn this.I18n.t('js.project.work_package_belongs_to', { projectname: project });}+ showTwoColumnLayout():boolean {+ return this.$element[0].getBoundingClientRect().width > 750;+ }+private rebuildGroupedFields(change:WorkPackageChangeset, attributeGroups:any) {if (!attributeGroups) {return [];diff --git a/frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.html b/frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.htmlindex fc6a43e400b..375a23f055e 100644--- a/frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.html+++ b/frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.html@@ -1,5 +1,6 @@<div *ngIf="workPackage"- class="work-package--single-view work-package--single-view_with-columns"+ class="work-package--single-view"+ [ngClass]="{'work-package--single-view_with-columns': showTwoColumnLayout()}"data-selector="wp-single-view"><div class="wp-new--subject-wrapper"*ngIf="isNewResource(workPackage)">