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

Fix alignment of filters in partitionedQuerySpace && fix toolbar alignment (especially with shown back button in Boards)

Henriette Darge9b33599d0fdd
diff --git a/app/assets/stylesheets/content/_advanced_filters.sass b/app/assets/stylesheets/content/_advanced_filters.sass
index 1f521704e12..73af5cc8233 100644
--- a/app/assets/stylesheets/content/_advanced_filters.sass
+++ b/app/assets/stylesheets/content/_advanced_filters.sass
@@ -39,7 +39,7 @@ $advanced-filters--grid-gap: 10px
max-height: 50vh
overflow-y: auto
position: relative
- margin-bottom: 10px
+ margin: 0 0 10px 0
&.collapsed
display: none
diff --git a/app/assets/stylesheets/layout/_toolbar.sass b/app/assets/stylesheets/layout/_toolbar.sass
index b8ab75d0e7d..0e3c2a13044 100644
--- a/app/assets/stylesheets/layout/_toolbar.sass
+++ b/app/assets/stylesheets/layout/_toolbar.sass
@@ -73,7 +73,7 @@ $nm-color-success-background: #d8fdd1
.toolbar
display: flex
flex-wrap: wrap
- align-items: center
+ align-items: flex-start
// automatically clear the toolbar
.toolbar:after
diff --git a/frontend/src/app/components/filters/filter-container/filter-container.directive.sass b/frontend/src/app/components/filters/filter-container/filter-container.directive.sass
new file mode 100644
index 00000000000..9ba37408c91
--- /dev/null
+++ b/frontend/src/app/components/filters/filter-container/filter-container.directive.sass
@@ -0,0 +1,3 @@
+.work-packages-partitioned-query-space--container
+ .work-packages--filters-optional-container
+ margin-right: 15px
\ No newline at end of file
diff --git a/frontend/src/app/components/filters/filter-container/filter-container.directive.ts b/frontend/src/app/components/filters/filter-container/filter-container.directive.ts
index 5779fe1898a..f1173bf242b 100644
--- a/frontend/src/app/components/filters/filter-container/filter-container.directive.ts
+++ b/frontend/src/app/components/filters/filter-container/filter-container.directive.ts
@@ -26,7 +26,16 @@
// See docs/COPYRIGHT.rdoc for more details.
// ++
-import {ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnDestroy, OnInit, Output} from '@angular/core';
+import {
+ ChangeDetectionStrategy,
+ ChangeDetectorRef,
+ Component,
+ Input,
+ OnDestroy,
+ OnInit,
+ Output,
+ ViewEncapsulation
+} from '@angular/core';
import {WorkPackageViewFiltersService} from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-filters.service';
import {WorkPackageFiltersService} from 'core-components/filters/wp-filters/wp-filters.service';
import {DebouncedEventEmitter} from "core-components/angular/debounced-event-emitter";
@@ -39,6 +48,9 @@ import {componentDestroyed} from "@w11k/ngx-componentdestroyed";
templateUrl: './filter-container.directive.html',
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'filter-container',
+ styleUrls: ['./filter-container.directive.sass'],
+ // To have access to partitioned-query-space styles
+ encapsulation: ViewEncapsulation.None
})
export class WorkPackageFilterContainerComponent extends UntilDestroyedMixin implements OnInit, OnDestroy {
@Input('showFilterButton') showFilterButton:boolean = false;