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

Show resizer only on splitted screen && reduce min-width of card view so that at least two cards fit next to each other.

Henriette Dingerb8925de47cd2
diff --git a/app/assets/stylesheets/layout/work_packages/_table_embedded.sass b/app/assets/stylesheets/layout/work_packages/_table_embedded.sass
index 1689daba4e6..1a253f6271b 100644
--- a/app/assets/stylesheets/layout/work_packages/_table_embedded.sass
+++ b/app/assets/stylesheets/layout/work_packages/_table_embedded.sass
@@ -66,9 +66,6 @@ $table-timeline--compact-row-height: 28px
height: 100%
overflow: auto
@include styled-scroll-bar
-
- .wp-cards-container.-horizontal
- grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))
&.-compact-tables
.wp-table--row
diff --git a/frontend/src/app/components/wp-card-view/styles/wp-card-view-horizontal.sass b/frontend/src/app/components/wp-card-view/styles/wp-card-view-horizontal.sass
index 4542ae58a88..42890d06344 100644
--- a/frontend/src/app/components/wp-card-view/styles/wp-card-view-horizontal.sass
+++ b/frontend/src/app/components/wp-card-view/styles/wp-card-view-horizontal.sass
@@ -1,6 +1,6 @@
.wp-cards-container.-horizontal
display: grid
- grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))
grid-column-gap: 10px
grid-row-gap: 10px
margin-right: 5px
diff --git a/frontend/src/app/components/wp-grid/wp-grid.component.ts b/frontend/src/app/components/wp-grid/wp-grid.component.ts
index 9e76ede53ce..a7ddd8b2720 100644
--- a/frontend/src/app/components/wp-grid/wp-grid.component.ts
+++ b/frontend/src/app/components/wp-grid/wp-grid.component.ts
@@ -52,7 +52,7 @@ import {WorkPackageTableConfiguration} from "core-components/wp-table/wp-table-c
[showInfoButton]="true"
[shrinkOnMobile]="true">
</wp-card-view>
-
+
<div *ngIf="showResizer"
class="hidden-for-mobile hide-when-print">
<wp-resizer [elementClass]="resizerClass"
diff --git a/frontend/src/app/modules/bim/ifc_models/bcf/list-container/bcf-list-container.component.ts b/frontend/src/app/modules/bim/ifc_models/bcf/list-container/bcf-list-container.component.ts
index e72d2ba35d3..dedfb46ec82 100644
--- a/frontend/src/app/modules/bim/ifc_models/bcf/list-container/bcf-list-container.component.ts
+++ b/frontend/src/app/modules/bim/ifc_models/bcf/list-container/bcf-list-container.component.ts
@@ -22,13 +22,13 @@ import {InjectField} from "core-app/helpers/angular/inject-field.decorator";
changeDetection: ChangeDetectionStrategy.OnPush
})
export class BcfListContainerComponent extends WorkPackageListViewComponent implements OnInit {
+ @InjectField() private bimView:BimViewService;
+
protected shouldShowAsListView(query:QueryResource):boolean {
return false;
}
protected showResizerInCardView():boolean {
- // TODO
- //return this.bimView.currentViewerState() !== bimSplitViewIdentifier;
- return true;
+ return this.bimView.currentViewerState() === bimSplitViewIdentifier;
}
}
diff --git a/frontend/src/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.ts b/frontend/src/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.ts
index 2839b51bf09..ce666a879ca 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.ts
+++ b/frontend/src/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
// ++
-import {ChangeDetectionStrategy, ChangeDetectorRef, Component, OnInit} from "@angular/core";
+import {ChangeDetectionStrategy, ChangeDetectorRef, Component, Injector, OnInit} from "@angular/core";
import {take} from "rxjs/operators";
import {CausedUpdatesService} from "core-app/modules/boards/board/caused-updates/caused-updates.service";
import {DragAndDropService} from "core-app/modules/common/drag-and-drop/drag-and-drop.service";
@@ -80,6 +80,7 @@ export class WorkPackageListViewComponent extends UntilDestroyedMixin implements
};
constructor(private I18n:I18nService,
+ readonly injector:Injector,
private querySpace:IsolatedQuerySpace,
private wpViewFilters:WorkPackageViewFiltersService,
private deviceService:DeviceService,
diff --git a/modules/bim/app/services/bim/bcf/viewpoints/delete_service.rb b/modules/bim/app/services/bim/bcf/viewpoints/delete_service.rb
index 2d6deb4c188..ac95665fa90 100644
--- a/modules/bim/app/services/bim/bcf/viewpoints/delete_service.rb
+++ b/modules/bim/app/services/bim/bcf/viewpoints/delete_service.rb
@@ -1,8 +1,8 @@
#-- encoding: UTF-8
#-- copyright
-# OpenProject is a project management system.
-# Copyright (C) 2012-2019 the OpenProject Foundation (OPF)
+# OpenProject is an open source project management software.
+# Copyright (C) 2012-2020 the OpenProject GmbH
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 3.
@@ -25,7 +25,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
-# See doc/COPYRIGHT.rdoc for more details.
+# See docs/COPYRIGHT.rdoc for more details.
#++
module Bim::Bcf
diff --git a/modules/bim/lib/open_project/bim/patches/project_patch.rb b/modules/bim/lib/open_project/bim/patches/project_patch.rb
index 715e3e51265..d7d858fafb7 100644
--- a/modules/bim/lib/open_project/bim/patches/project_patch.rb
+++ b/modules/bim/lib/open_project/bim/patches/project_patch.rb
@@ -1,6 +1,6 @@
#-- copyright
-# OpenProject is a project management system.
-# Copyright (C) 2012-2019 the OpenProject Foundation (OPF)
+# OpenProject is an open source project management software.
+# Copyright (C) 2012-2020 the OpenProject GmbH
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 3.