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

Change icon && Make icons smaller and a background so that they are visible even with a snapshot behind them

Henriette Dinger970fb286cf10
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.sass
index d695aa18cab..e85f21468f0 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
@@ -5,14 +5,25 @@ ngx-gallery
display: inline-block
ngx-gallery ::ng-deep
- .ngx-gallery-arrow
+ ngx-gallery-thumbnails .ngx-gallery-arrow
color: var(--content-link-color)
.ngx-gallery-arrow.ngx-gallery-disabled
display: none
+ // Add small background for gallery icons to be sure they are always visible
+ .ngx-gallery-icons-wrapper
+ background: rgba(255, 255, 255, 0.5)
+ padding: 5px
+ .ngx-gallery-icon
+ margin-top: 0
+
+ ngx-gallery-action:last-of-type .ngx-gallery-icon
+ margin-right: 0
+
.ngx-gallery-thumbnail.ngx-gallery-clickable
.ngx-gallery-icon
+ font-size: 1.25rem
color: var(--content-link-color)
// Disable red border on active thumbnails
@@ -20,3 +31,9 @@ ngx-gallery ::ng-deep
.ngx-gallery-thumbnail
border: none !important
+ // Decrease opacity of background to avoid content conflicts
+ ngx-gallery-preview
+ background: rgba(0, 0, 0, 0.8) !important
+
+ a:hover
+ color: #FFFFFF
diff --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.ts
index 9b40a10b81f..6ca35a75984 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
@@ -311,7 +311,7 @@ export class BcfWpAttributeGroupComponent extends UntilDestroyedMixin implements
protected actions() {
return [
{
- icon: 'icon-watched',
+ icon: 'icon-view-model',
onClick: (evt:any, index:number) => this.showViewpoint(index),
titleText: this.text.show_viewpoint
},