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

Merge branch 'dev' into fix/fine-tuning-of-ds

Benjamin Bädorfac5509027986
diff --cc frontend/src/app/shared/components/project-include/project-include.component.html
index 6e621123457,3b8e3ef9a92..91b108d3ff9
--- a/frontend/src/app/shared/components/project-include/project-include.component.html
+++ b/frontend/src/app/shared/components/project-include/project-include.component.html
@@@ -29,9 -29,10 +29,10 @@@
</div>
<form
(submit)="onSubmit($event)"
- class="spot-body"
+ class="spot-body op-project-include--body"
>
<spot-text-field
+ [disabled]="!(areProjectsLoaded$ | async)"
[placeholder]="text.search_placeholder"
name="project-include-search"
[(ngModel)]="query"
@@@ -44,15 -45,15 +45,17 @@@
></span>
</spot-text-field>
- <ul
- class="op-project-include--list"
- op-project-list
- [projects]="projects$ | async"
- [selected]="selectedProjects"
- [query]="query"
- (update)="selectedProjects = $event"
- data-qa-selector="project-include-list"
- ></ul>
+ <ng-container *ngIf="(areProjectsLoaded$ | async); else loadingTemplate">
+ <ul
++ class="op-project-include--list"
+ op-project-list
+ [projects]="projects$ | async"
+ [selected]="selectedProjects"
++ [query]="query"
+ (update)="selectedProjects = $event"
+ data-qa-selector="project-include-list"
+ ></ul>
- </ng-container>
++ </ng-container>
<div class="spot-action-bar">
<div class="spot-action-bar--left"></div>
@@@ -69,6 -74,40 +76,41 @@@
</button>
</div>
</div>
- <ng-template #loadingTemplate>
- <op-content-loader
- class="op-project-include--loading"
- data-qa-selector="op-project-include--loading"
- viewBox="0 0 200 140"
- >
- <svg:rect x="0" width="12" height="12" rx="1" />
- <svg:rect x="15" width="100%" height="12" rx="1" />
+ </form>
+ </ng-container>
+</spot-drop-modal>
+
- <svg:rect x="10" y="16" width="12" height="12" rx="1" />
- <svg:rect x="25" y="16" width="100%" height="12" rx="1" />
++<ng-template #loadingTemplate>
++ <op-content-loader
++ class="op-project-include--loading"
++ data-qa-selector="op-project-include--loading"
++ viewBox="0 0 200 140"
++ >
++ <svg:rect x="0" width="12" height="12" rx="1" />
++ <svg:rect x="15" width="100%" height="12" rx="1" />
+
- <svg:rect x="10" y="32" width="12" height="12" rx="1" />
- <svg:rect x="25" y="32" width="100%" height="12" rx="1" />
++ <svg:rect x="10" y="16" width="12" height="12" rx="1" />
++ <svg:rect x="25" y="16" width="100%" height="12" rx="1" />
+
- <svg:rect x="20" y="48" width="12" height="12" rx="1" />
- <svg:rect x="35" y="48" width="100%" height="12" rx="1" />
++ <svg:rect x="10" y="32" width="12" height="12" rx="1" />
++ <svg:rect x="25" y="32" width="100%" height="12" rx="1" />
+
- <svg:rect x="20" y="64" width="12" height="12" rx="1" />
- <svg:rect x="35" y="64" width="100%" height="12" rx="1" />
++ <svg:rect x="20" y="48" width="12" height="12" rx="1" />
++ <svg:rect x="35" y="48" width="100%" height="12" rx="1" />
+
- <svg:rect x="0" y="80" width="12" height="12" rx="1" />
- <svg:rect x="15" y="80" width="100%" height="12" rx="1" />
++ <svg:rect x="20" y="64" width="12" height="12" rx="1" />
++ <svg:rect x="35" y="64" width="100%" height="12" rx="1" />
+
- <svg:rect x="10" y="96" width="12" height="12" rx="1" />
- <svg:rect x="25" y="96" width="100%" height="12" rx="1" />
++ <svg:rect x="0" y="80" width="12" height="12" rx="1" />
++ <svg:rect x="15" y="80" width="100%" height="12" rx="1" />
+
- <svg:rect x="10" y="112" width="12" height="12" rx="1" />
- <svg:rect x="25" y="112" width="100%" height="12" rx="1" />
++ <svg:rect x="10" y="96" width="12" height="12" rx="1" />
++ <svg:rect x="25" y="96" width="100%" height="12" rx="1" />
+
- <svg:rect x="0" y="128" width="12" height="12" rx="1" />
- <svg:rect x="15" y="128" width="100%" height="12" rx="1" />
- </op-content-loader>
- </ng-template>
- </form>
- </ng-container>
-</spot-drop-modal>
++ <svg:rect x="10" y="112" width="12" height="12" rx="1" />
++ <svg:rect x="25" y="112" width="100%" height="12" rx="1" />
++
++ <svg:rect x="0" y="128" width="12" height="12" rx="1" />
++ <svg:rect x="15" y="128" width="100%" height="12" rx="1" />
++ </op-content-loader>
++</ng-template>
diff --cc frontend/src/app/shared/components/project-include/project-include.component.sass
index ed94fb08b89,76ef2cdaa41..4bef140756a
--- a/frontend/src/app/shared/components/project-include/project-include.component.sass
+++ b/frontend/src/app/shared/components/project-include/project-include.component.sass
@@@ -17,13 -17,5 +17,15 @@@
padding: 0
@include spot-subheader-big
+ &--body
+ flex-shrink: 1
+ flex-basis: 100%
+ overflow: hidden
+
+ &--list
+ overflow-y: auto
+ flex-shrink: 1
+ flex-basis: 100%
+
+ &--loading
- padding: 0 15px 0 15px
++ padding: 0 $spot-spacing-1 0 $spot-spacing-1