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
Show more viewpoints in gallery at once
Wieland Lindenthale810cce5d120
diff --git a/frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.sass b/frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.sassindex e85f21468f0..70bf2aeec65 100644--- a/frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.sass+++ b/frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.sass@@ -21,15 +21,20 @@ ngx-gallery ::ng-deepngx-gallery-action:last-of-type .ngx-gallery-iconmargin-right: 0- .ngx-gallery-thumbnail.ngx-gallery-clickable- .ngx-gallery-icon- font-size: 1.25rem- color: var(--content-link-color)+ .ngx-gallery-thumbnail+ background-color: white+ &.ngx-gallery-clickable+ .ngx-gallery-icon+ font-size: 1.25rem+ color: var(--content-link-color)// Disable red border on active thumbnails.ngx-gallery-active,.ngx-gallery-thumbnail- border: none !important+ border: 1px solid #E7E7E7 !important++ .ngx-gallery-preview-img+ background-color: white// Decrease opacity of background to avoid content conflictsngx-gallery-previewdiff --git a/frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.ts b/frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.tsindex 27f1e4e48de..92fc18107f6 100644--- a/frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.ts+++ b/frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.ts@@ -67,7 +67,8 @@ export class BcfWpAttributeGroupComponent extends UntilDestroyedMixin implementsthumbnailsColumns: 1,// Ensure thumbnails are ALWAYS shownthumbnailsAutoHide: false,-+ // For BCFs all information shall be visible+ thumbnailSize: 'contain',imageAnimation: '',previewAnimation: false,previewCloseOnEsc: true,@@ -90,16 +91,19 @@ export class BcfWpAttributeGroupComponent extends UntilDestroyedMixin implements{breakpoint: 800,width: '100%',- height: '600px',+ height: '400px',imagePercent: 80,thumbnailsPercent: 20,- thumbnailsMargin: 20,- thumbnailMargin: 20+ thumbnailsMargin: 5,+ thumbnailMargin: 5},- // max-width 400+ // max-width 680{- breakpoint: 400,+ breakpoint: 680,height: '200px',+ thumbnailsColumns: 3,+ thumbnailsMargin: 5,+ thumbnailMargin: 5,}];@@ -263,6 +267,8 @@ export class BcfWpAttributeGroupComponent extends UntilDestroyedMixin implementsprotected setViewpoints(viewpoints:ViewpointItem[]) {const length = viewpoints.length;+ this.setThumbnailProperties(length);+if (this.showIndex < 0 || length < 1) {this.showIndex = 0;} else if (this.showIndex >= length) {@@ -319,4 +325,22 @@ export class BcfWpAttributeGroupComponent extends UntilDestroyedMixin implements(this.viewpoints.length > 0 ||(this.createAllowed && this.viewerVisible));}++ protected setThumbnailProperties(viewpointCount:number) {+ const options = [...this.galleryOptions];++ options[0].thumbnailsColumns = viewpointCount < 6 ? viewpointCount : 5;+ options[1].thumbnailsColumns = viewpointCount < 5 ? viewpointCount : 4;+ options[2].thumbnailsColumns = viewpointCount < 4 ? viewpointCount : 3;++ options[0].height = `${this.dynamicThumbnailHeight(viewpointCount)}px`;+ options[1].height = `${this.dynamicThumbnailHeight(viewpointCount)}px`;+ options[2].height = `${this.dynamicThumbnailHeight(viewpointCount)}px`;++ this.galleryOptions = options;+ }++ protected dynamicThumbnailHeight(viewpointCount:number):number {+ return Math.max(Math.round(300 / viewpointCount), 120);+ }}