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
[56919] Make notification center split screen resizable (#16437)
Behrokh Satarnejad105930d4a59d
diff --git a/app/components/work_packages/split_view_component.html.erb b/app/components/work_packages/split_view_component.html.erbindex 48b1549e621..acc03f9bbe2 100644--- a/app/components/work_packages/split_view_component.html.erb+++ b/app/components/work_packages/split_view_component.html.erb@@ -18,6 +18,8 @@helpers.angular_component_tag "opce-wp-split-view",inputs: {work_package_id: params[:work_package_id] || @work_package.id,+ resizerClass: "op-work-package-split-view",+ resizeStyle: "width",activeTab: @tab}enddiff --git a/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view-entry.component.ts b/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view-entry.component.tsindex b2843695528..7ef0961f93a 100644--- a/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view-entry.component.ts+++ b/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view-entry.component.ts@@ -26,12 +26,7 @@// See COPYRIGHT and LICENSE files for more details.//++-import {- ChangeDetectionStrategy,- Component,- ElementRef,- Input,-} from '@angular/core';+import { ChangeDetectionStrategy, Component, ElementRef, Input } from '@angular/core';import {WorkPackageIsolatedQuerySpaceDirective,} from 'core-app/features/work-packages/directives/query-space/wp-isolated-query-space.directive';@@ -48,6 +43,8 @@ import { populateInputsFromDataset } from 'core-app/shared/components/dataset-in[workPackageId]="workPackageId"[activeTab]="activeTab"[showTabs]="false"+ [resizeStyle]="resizeStyle"+ [resizerClass]="resizerClass"></op-wp-split-view>`,changeDetection: ChangeDetectionStrategy.OnPush,@@ -55,6 +52,8 @@ import { populateInputsFromDataset } from 'core-app/shared/components/dataset-inexport class WorkPackageSplitViewEntryComponent {@Input() workPackageId:string;@Input() activeTab:string;+ @Input() resizerClass:string;+ @Input() resizeStyle:string;constructor(readonly elementRef:ElementRef) {populateInputsFromDataset(this);diff --git a/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view.component.ts b/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view.component.tsindex f409ca6cfb5..6f672428da8 100644--- a/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view.component.ts+++ b/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view.component.ts@@ -75,6 +75,9 @@ export class WorkPackageSplitViewComponent extends WorkPackageSingleViewBase imp@Input() showTabs = true;@Input() activeTab?:string;+ @Input() resizerClass = 'work-packages-partitioned-page--content-right';+ @Input() resizeStyle:'flexBasis'|'width' = 'flexBasis';+constructor(public injector:Injector,public states:States,diff --git a/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view.html b/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view.htmlindex 6cb165fd247..7342cf38728 100644--- a/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view.html+++ b/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view.html@@ -68,7 +68,8 @@</div><div class="work-packages--details--resizer hidden-for-mobile hide-when-print">- <wp-resizer [elementClass]="'work-packages-partitioned-page--content-right'"+ <wp-resizer [elementClass]="resizerClass"+ [resizeStyle]="resizeStyle"[localStorageKey]="'openProject-splitViewFlexBasis'"></wp-resizer></div></div>diff --git a/frontend/src/app/shared/components/resizer/resizer/wp-resizer.component.ts b/frontend/src/app/shared/components/resizer/resizer/wp-resizer.component.tsindex 45533ed2747..fe7a04d7950 100644--- a/frontend/src/app/shared/components/resizer/resizer/wp-resizer.component.ts+++ b/frontend/src/app/shared/components/resizer/resizer/wp-resizer.component.ts@@ -1,4 +1,4 @@-//-- copyright+// -- copyright// OpenProject is an open source project management software.// Copyright (C) the OpenProject GmbH//@@ -73,10 +73,12 @@ export class WpResizerDirective extends UntilDestroyedMixin implements OnInit, Apublic resizerClass = 'work-packages--resizer icon-resizer-vertical-lines';- constructor(readonly toggleService:MainMenuToggleService,+ constructor(+ readonly toggleService:MainMenuToggleService,private elementRef:ElementRef,readonly $transitions:TransitionService,- readonly browserDetector:BrowserDetector) {+ readonly browserDetector:BrowserDetector,+ ) {super();}@@ -86,7 +88,7 @@ export class WpResizerDirective extends UntilDestroyedMixin implements OnInit, A// to still work in case an element is duplicated by Angular.const elements = document.getElementsByClassName(this.elementClass);this.resizingElement = <HTMLElement>elements[elements.length - 1];-+if (!this.resizingElement) {return;}