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

Add specific styles for free boards needed because of the lack of the "list highlighting bar" && add filter styles to the mixin they are needed

Henriette Darge45de0827ac8a
diff --git a/app/assets/stylesheets/layout/_boards.sass b/app/assets/stylesheets/layout/_boards.sass
index 75faa622dfc..db573c708cb 100644
--- a/app/assets/stylesheets/layout/_boards.sass
+++ b/app/assets/stylesheets/layout/_boards.sass
@@ -2,6 +2,7 @@
.router--boards-full-view
@include extended-content--bottom
@include extended-content--right
+ @include extended-content--left
#content
height: 100%
diff --git a/app/assets/stylesheets/openproject/_mixins.sass b/app/assets/stylesheets/openproject/_mixins.sass
index d0cec8307a7..f6d78cdedb0 100644
--- a/app/assets/stylesheets/openproject/_mixins.sass
+++ b/app/assets/stylesheets/openproject/_mixins.sass
@@ -167,6 +167,8 @@ $scrollbar-size: 10px
.toolbar-container
padding-left: 20px
+ .work-packages--filters-optional-container
+ margin-left: 20px
@mixin extended-content--right
#content-wrapper
@@ -174,3 +176,5 @@ $scrollbar-size: 10px
.toolbar-container
padding-right: 15px
+ .work-packages--filters-optional-container
+ margin-right: 15px
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
deleted file mode 100644
index 9ba37408c91..00000000000
--- a/frontend/src/app/components/filters/filter-container/filter-container.directive.sass
+++ /dev/null
@@ -1,3 +0,0 @@
-.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 f1173bf242b..75abb539b94 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
@@ -47,10 +47,7 @@ import {componentDestroyed} from "@w11k/ngx-componentdestroyed";
@Component({
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
+ selector: 'filter-container'
})
export class WorkPackageFilterContainerComponent extends UntilDestroyedMixin implements OnInit, OnDestroy {
@Input('showFilterButton') showFilterButton:boolean = false;
diff --git a/frontend/src/app/modules/boards/board/board-partitioned-page/board-list-container.component.html b/frontend/src/app/modules/boards/board/board-partitioned-page/board-list-container.component.html
index 44842bc0340..4d329767b8b 100644
--- a/frontend/src/app/modules/boards/board/board-partitioned-page/board-list-container.component.html
+++ b/frontend/src/app/modules/boards/board/board-partitioned-page/board-list-container.component.html
@@ -1,5 +1,6 @@
<ng-container *ngIf="(board$ | async) as board">
<div class="boards-list--container"
+ [ngClass]="{ '-free' : board.isFree }"
#container
*ngIf="showBoardListView()"
cdkDropList
diff --git a/frontend/src/app/modules/boards/board/board-partitioned-page/board-list-container.component.sass b/frontend/src/app/modules/boards/board/board-partitioned-page/board-list-container.component.sass
index 208925e4e27..75fcc57affe 100644
--- a/frontend/src/app/modules/boards/board/board-partitioned-page/board-list-container.component.sass
+++ b/frontend/src/app/modules/boards/board/board-partitioned-page/board-list-container.component.sass
@@ -21,6 +21,9 @@ $board-list-max-width: 300px
opacity: 0
cursor: grab
+ .boards-list--container.-free &
+ top: 13px
+
&:before
padding: 0
color: var(--light-gray)
@@ -38,6 +41,9 @@ $board-list-max-width: 300px
cursor: pointer
color: var(--gray-dark)
+ .boards-list--container.-free &
+ margin-top: 0
+
&:hover
color: var(--body-font-color)