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

Enable resizer next to embedded table card view

Henriette Dinger38030bb1c7e6
diff --git a/app/assets/stylesheets/layout/work_packages/_table_embedded.sass b/app/assets/stylesheets/layout/work_packages/_table_embedded.sass
index 1689daba4e6..e9974fa066f 100644
--- a/app/assets/stylesheets/layout/work_packages/_table_embedded.sass
+++ b/app/assets/stylesheets/layout/work_packages/_table_embedded.sass
@@ -70,6 +70,9 @@ $table-timeline--compact-row-height: 28px
.wp-cards-container.-horizontal
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))
+ &.-with-resizer
+ padding-left: 10px
+
&.-compact-tables
.wp-table--row
border-bottom: none !important
diff --git a/frontend/src/app/components/wp-table/embedded/wp-embedded-table.component.ts b/frontend/src/app/components/wp-table/embedded/wp-embedded-table.component.ts
index 6310c30b3c6..7d431d05a32 100644
--- a/frontend/src/app/components/wp-table/embedded/wp-embedded-table.component.ts
+++ b/frontend/src/app/components/wp-table/embedded/wp-embedded-table.component.ts
@@ -23,6 +23,9 @@ export class WorkPackageEmbeddedTableComponent extends WorkPackageEmbeddedBaseCo
@Input('queryProps') public queryProps:any = {};
@Input() public tableActions:OpTableActionFactory[] = [];
@Input() public externalHeight:boolean = false;
+ @Input() public showResizer:boolean = false;
+ @Input() public resizerClass:string = '';
+ @Input() public resizerStorageKey:string = '';
/** Inform about loading errors */
@Output() public onError = new EventEmitter<string>();
diff --git a/frontend/src/app/components/wp-table/embedded/wp-embedded-table.html b/frontend/src/app/components/wp-table/embedded/wp-embedded-table.html
index fb202246b6d..39ac8903d28 100644
--- a/frontend/src/app/components/wp-table/embedded/wp-embedded-table.html
+++ b/frontend/src/app/components/wp-table/embedded/wp-embedded-table.html
@@ -19,10 +19,17 @@
class="work-packages-split-view--tabletimeline-content"></wp-table>
<!-- GRID representation of the WP -->
- <div class="work-packages-embedded-view--grid-view">
+ <div class="work-packages-embedded-view--grid-view"
+ [ngClass]="{ '-with-resizer': showResizer }" >
<wp-grid *ngIf="configuration.isCardView"
[configuration]="configuration">
</wp-grid>
+
+ <div *ngIf="showResizer"
+ class="hidden-for-mobile hide-when-print">
+ <wp-resizer [elementClass]="resizerClass"
+ [localStorageKey]="resizerStorageKey"></wp-resizer>
+ </div>
</div>
<!-- Footer -->
diff --git a/frontend/src/app/modules/ifc_models/bcf/container/bcf-container.component.html b/frontend/src/app/modules/ifc_models/bcf/container/bcf-container.component.html
index eac5e603438..80fbd0437cf 100644
--- a/frontend/src/app/modules/ifc_models/bcf/container/bcf-container.component.html
+++ b/frontend/src/app/modules/ifc_models/bcf/container/bcf-container.component.html
@@ -1,4 +1,7 @@
<wp-embedded-table [queryProps]="queryProps"
[configuration]="configuration"
- [externalHeight]="true">
+ [externalHeight]="true"
+ [showResizer]="true"
+ resizerClass="work-packages-partitioned-page--content-right"
+ resizerStorageKey="openProject-splitViewFlexBasis">
</wp-embedded-table>
diff --git a/frontend/src/app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.sass b/frontend/src/app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.sass
index de09746be18..6f518523124 100644
--- a/frontend/src/app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.sass
+++ b/frontend/src/app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.sass
@@ -30,6 +30,10 @@
.work-packages-partitioned-page--content-container
display: flex
+ .work-packages-partitioned-page--content-left,
+ .work-packages-partitioned-page--content-right
+ position: relative
+ min-width: 580px
+
.work-packages-partitioned-page--content-left
flex: 1
- min-width: 580px
diff --git a/frontend/src/app/modules/work_packages/routing/work-packages-routes.ts b/frontend/src/app/modules/work_packages/routing/work-packages-routes.ts
index 452799cc24e..6f3cd0b2565 100644
--- a/frontend/src/app/modules/work_packages/routing/work-packages-routes.ts
+++ b/frontend/src/app/modules/work_packages/routing/work-packages-routes.ts
@@ -164,7 +164,8 @@ export const WORK_PACKAGES_ROUTES:Ng2StateDeclaration[] = [
allowMovingInEditMode: true,
bodyClasses: 'router--work-packages-split-view-new',
menuItem: menuItemClass,
- parent: 'work-packages.partitioned.list'
+ parent: 'work-packages.partitioned.list',
+ partition: '-split'
},
},
{
@@ -178,7 +179,8 @@ export const WORK_PACKAGES_ROUTES:Ng2StateDeclaration[] = [
allowMovingInEditMode: true,
bodyClasses: 'router--work-packages-partitioned-split-view',
menuItem: menuItemClass,
- parent: 'work-packages.partitioned.list'
+ parent: 'work-packages.partitioned.list',
+ partition: '-split'
},
},
...makeSplitViewRoutes(
diff --git a/modules/bim/app/assets/stylesheets/bim/ifc_viewer/generic.sass b/modules/bim/app/assets/stylesheets/bim/ifc_viewer/generic.sass
index 6f37959cce7..f5e01a5109c 100644
--- a/modules/bim/app/assets/stylesheets/bim/ifc_viewer/generic.sass
+++ b/modules/bim/app/assets/stylesheets/bim/ifc_viewer/generic.sass
@@ -60,7 +60,9 @@
// -------------------------- XEOKIT specific rules for BUTTONS --------------------------
.xeokit-btn-group
vertical-align: middle
- margin-right: .5rem
+
+ &:not(:last-of-type)
+ margin-right: .5rem
.xeokit-btn
position: relative